task
(基本上
Google promise implementation
):
val task:Task<AuthResult> = FirebaseAuth.getInstance().signInAnonymously()
如何可能创建
signInAnonymous
-
它是一个
suspend
函数,等待
task
-
suspend fun signInAnonymous(): Unit
-
Deferred
对象,异步传递结果
-
fun signInAnonymous() : Deferred