Skip to content

Update Awaitable.Threading.cs - #35

Open
Thaina wants to merge 2 commits into
Unity-Technologies:masterfrom
Thaina:patch-3
Open

Update Awaitable.Threading.cs#35
Thaina wants to merge 2 commits into
Unity-Technologies:masterfrom
Thaina:patch-3

Conversation

@Thaina

@ThainaThaina commented Oct 22, 2024

Copy link
Copy Markdown

Expose MainThreadSynchronizationContext so we can use in Task and similar API that can accept SynchronizationContext to return to main thread

Add helper extension method to Task for conveniently scheduling task in one line

varfireUser=awaitFirebaseAuth.DefaultInstance.SignInWithCredentialAsync(GoogleAuthProvider.GetCredential(user.IdToken,null));awaitAwaitable.MainThreadAsync();Debug.Log(fireUser);// InsteadDebug.Log(awaitFirebaseAuth.DefaultInstance.SignInWithCredentialAsync(GoogleAuthProvider.GetCredential(user.IdToken,null)).OnMainThread());

Unity Technologiesand others added 2 commits October 16, 2024 23:50
Expose `MainThreadSynchronizationContext` so we can use in `Task` and similar API that can accept `SynchronizationContext` to return to main thread
Add helper extension method to `Task` for conveniently scheduling task in one line
@qingshu

qingshu commented Oct 22, 2024 via email

Copy link
Copy Markdown

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Thaina@qingshu