Created
July 2, 2020 07:58
-
-
Save dllewellyn/b6ecb25020357ca1d6f86f51e8aa7c9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suspend fun SignInClient.suspendBeginSignInRequest(beginSignInRequest: BeginSignInRequest) :BeginSignInResult = | |
suspendCoroutine { continuation -> | |
beginSignIn(beginSignInRequest).addOnSuccessListener { | |
continuation.resume(it) | |
} | |
.addOnFailureListener { | |
continuation.resumeWithException(it) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment