Class FutureTimeoutSupport
Used to help make it easier to schedule timeouts in conjunction with the built-in IScheduler
Inherited Members
Namespace: Akka.Pattern
Assembly: Akka.dll
Syntax
public static class FutureTimeoutSupport
Methods
| Improve this Doc View SourceAfter<T>(TimeSpan, IScheduler, Func<Task<T>>)
Returns a Task that will be completed with the success or failure of the provided value after the specified duration.
Declaration
public static Task<T> After<T>(TimeSpan duration, IScheduler scheduler, Func<Task<T>> value)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | duration | The duration to wait. |
IScheduler | scheduler | The scheduler instance to use. |
Func<Task<T>> | value | The task we're going to wrap. |
Returns
Type | Description |
---|---|
Task<T> | a Task that will be completed with the success or failure of the provided value after the specified duration |
Type Parameters
Name | Description |
---|---|
T | The return type of task. |