Struct PromiseAwaiter
- Namespace
- MarymoorStudios.Core.Promises
- Assembly
- MarymoorStudios.Core.Promises.dll
Enables the await
keyword for Promise.
public readonly struct PromiseAwaiter : ICriticalNotifyCompletion, INotifyCompletion
- Implements
- Inherited Members
Constructors
PromiseAwaiter(Promise)
Constructor.
public PromiseAwaiter(Promise p)
Parameters
p
Promise
Properties
IsCompleted
True if the promise has been resolved successfully.
public bool IsCompleted { get; }
Property Value
Methods
GetResult()
Rethrows the Exception of failed promises, otherwise does nothing.
public void GetResult()