public void GetResult(short token) { if (source == null) { if (exception != null) { exception.Throw(); } } else { try { source.GetResult(token); status = UniTaskStatus.Succeeded; } catch (Exception ex) { exception = ExceptionDispatchInfo.Capture(ex); if (ex is OperationCanceledException) { status = UniTaskStatus.Canceled; } else { status = UniTaskStatus.Faulted; } throw; } finally { source = null; } } }
public UniTask(IUniTaskSource source, short token) { this.source = source; this.token = token; }
private PromiseAwaiterPair(IUniTaskSource promise, in TAwaiter awaiter)
public IsCanceledSource(IUniTaskSource <T> source) { this.source = source; }
public UniTask(IUniTaskSource <T> source, short token) { this.source = source; this.token = token; this.result = default; }
public UniTask(T result) { this.source = default; this.token = default; this.result = result; }
public MemoizeSource(IUniTaskSource source) { this.source = source; }
public AsyncUnitSource(IUniTaskSource source) { this.source = source; }