WorkerThread.Post Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Post(Action) | |
Post(Action<CancellationToken>, CancellationToken) | |
Post<T>(Func<T>) | |
Post<T>(Func<CancellationToken,T>, CancellationToken) |
Post(Action)
Post(Action<CancellationToken>, CancellationToken)
public System.Threading.Tasks.Task Post (Action<System.Threading.CancellationToken> callback, System.Threading.CancellationToken cancellationToken);
member this.Post : Action<System.Threading.CancellationToken> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Parameters
- callback
- Action<CancellationToken>
- cancellationToken
- CancellationToken
Returns
Applies to
Post<T>(Func<T>)
Post<T>(Func<CancellationToken,T>, CancellationToken)
public System.Threading.Tasks.Task<T> Post<T> (Func<System.Threading.CancellationToken,T> callback, System.Threading.CancellationToken cancellationToken);
member this.Post : Func<System.Threading.CancellationToken, 'T> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
Type Parameters
- T
Parameters
- callback
- Func<CancellationToken,T>
- cancellationToken
- CancellationToken
Returns
Task<T>