Class Futures
Extension method class designed to create Ask support for
non-ActorRef objects such as Actor
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public static class Futures
Methods
| Improve this Doc View SourceAsk(ICanTell, Object, Nullable<TimeSpan>)
TBD
Declaration
public static Task<object> Ask(this ICanTell self, object message, TimeSpan? timeout = null)
Parameters
Returns
| Improve this Doc View SourceAsk(ICanTell, Object, Nullable<TimeSpan>, CancellationToken)
TBD
Declaration
public static Task<object> Ask(this ICanTell self, object message, TimeSpan? timeout, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ICan |
self | TBD |
Object | message | TBD |
Nullable<Time |
timeout | TBD |
Cancellation |
cancellationToken | TBD |
Returns
| Improve this Doc View SourceAsk(ICanTell, Object, CancellationToken)
TBD
Declaration
public static Task<object> Ask(this ICanTell self, object message, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ICan |
self | TBD |
Object | message | TBD |
Cancellation |
cancellationToken | TBD |
Returns
| Improve this Doc View SourceAsk<T>(ICanTell, Func<IActorRef, Object>, Nullable<TimeSpan>, CancellationToken)
TBD
Declaration
public static Task<T> Ask<T>(this ICanTell self, Func<IActorRef, object> messageFactory, TimeSpan? timeout, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ICan |
self | TBD |
Func<IActor |
messageFactory | Factory method that creates a message that can encapsulate the 'Sender' IActorRef |
Nullable<Time |
timeout | TBD |
Cancellation |
cancellationToken | TBD |
Returns
Type | Description |
---|---|
Task<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
Exceptions
Type | Condition |
---|---|
Argument |
This exception is thrown if the system can't resolve the target provider. |
Ask<T>(ICanTell, Object, Nullable<TimeSpan>)
TBD
Declaration
public static Task<T> Ask<T>(this ICanTell self, object message, TimeSpan? timeout = null)
Parameters
Returns
Type | Description |
---|---|
Task<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
Ask<T>(ICanTell, Object, Nullable<TimeSpan>, CancellationToken)
TBD
Declaration
public static Task<T> Ask<T>(this ICanTell self, object message, TimeSpan? timeout, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ICan |
self | TBD |
Object | message | TBD |
Nullable<Time |
timeout | TBD |
Cancellation |
cancellationToken | TBD |
Returns
Type | Description |
---|---|
Task<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
Exceptions
Type | Condition |
---|---|
Argument |
This exception is thrown if the system can't resolve the target provider. |
Ask<T>(ICanTell, Object, CancellationToken)
TBD
Declaration
public static Task<T> Ask<T>(this ICanTell self, object message, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ICan |
self | TBD |
Object | message | TBD |
Cancellation |
cancellationToken | TBD |
Returns
Type | Description |
---|---|
Task<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |