-
Notifications
You must be signed in to change notification settings - Fork 1
The Tasks class
kobi2294 edited this page Apr 22, 2019
·
1 revision
This static class provides a set of TPL related shortcuts and extension methods.
-
Tasks.Empty
- returns a completed task -
Tasks.True
- returns a completed boolean task with the resulttrue
-
Tasks.False
- returns a completed boolean task with the resultfalse
-
ToTask<T>
Extension method - creates a completedTask<T>
with the source as result -
ToDeferredTask<T>
Extension method - creates an in progressDeferredTask<T>
with the source as result. -
ToContextRunner
Extension method - converts aTaskScheduler
to Context Runner.