Delegate AsyncAction
Encapsulates an asynchronous method that has no parameters and does not return a value.
Equivalent to Func<Task>
.
Namespace: Recore
Assembly: Recore.dll
Syntax
public delegate Task AsyncAction();
Returns
Type | Description |
---|---|
Task |
Examples
Say you have a method with the signature
Task DoThing(int x, string s, Func<Task> thing)
You can refactor this to
Task DoThing(int x, string s, AsyncAction thing)