Merge pull request #44 from vc-kusuha/fix_typo

Fix typo
pull/63/head
Yoshifumi Kawai 2020-04-15 14:40:01 +09:00 committed by GitHub
commit 6e441a2d14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ namespace UniRx.Async
public static void RegisterRaiseCancelOnDestroy(this CancellationTokenSource cts, GameObject gameObject) public static void RegisterRaiseCancelOnDestroy(this CancellationTokenSource cts, GameObject gameObject)
{ {
var trigger = gameObject.GetAsyncDestroyTrigger(); var trigger = gameObject.GetAsyncDestroyTrigger();
trigger.AddCancellationTriggerOnDestory(cts); trigger.AddCancellationTriggerOnDestroy(cts);
} }
} }
} }

View File

@ -13,7 +13,7 @@ namespace UniRx.Async.Triggers
bool called = false; bool called = false;
UniTaskCompletionSource promise; UniTaskCompletionSource promise;
CancellationTokenSource cancellationTokenSource; // main cancellation CancellationTokenSource cancellationTokenSource; // main cancellation
object canellationTokenSourceOrQueue; // external from AddCancellationTriggerOnDestory object canellationTokenSourceOrQueue; // external from AddCancellationTriggerOnDestroy
public CancellationToken CancellationToken public CancellationToken CancellationToken
{ {
@ -63,7 +63,7 @@ namespace UniRx.Async.Triggers
} }
/// <summary>Add Cancellation Triggers on destroy</summary> /// <summary>Add Cancellation Triggers on destroy</summary>
public void AddCancellationTriggerOnDestory(CancellationTokenSource cts) public void AddCancellationTriggerOnDestroy(CancellationTokenSource cts)
{ {
if (called) if (called)
{ {