Class Futures
Extension method class designed to create Ask support for non-ActorRef objects such as ActorSelection.
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
Type | Name | Description |
---|---|---|
ICanTell | self | TBD |
Object | message | TBD |
Nullable<TimeSpan> | timeout | TBD |
Returns
Type | Description |
---|---|
Task<Object> | TBD |
Ask(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 |
---|---|---|
ICanTell | self | TBD |
Object | message | TBD |
Nullable<TimeSpan> | timeout | TBD |
CancellationToken | cancellationToken | TBD |
Returns
Type | Description |
---|---|
Task<Object> | TBD |
Ask(ICanTell, Object, CancellationToken)
TBD
Declaration
public static Task<object> Ask(this ICanTell self, object message, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
ICanTell | self | TBD |
Object | message | TBD |
CancellationToken | cancellationToken | TBD |
Returns
Type | Description |
---|---|
Task<Object> | TBD |
Ask<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 |
---|---|---|
ICanTell | self | TBD |
Func<IActorRef, Object> | messageFactory | Factory method that creates a message that can encapsulate the 'Sender' IActorRef |
Nullable<TimeSpan> | timeout | TBD |
CancellationToken | cancellationToken | TBD |
Returns
Type | Description |
---|---|
Task<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
Exceptions
Type | Condition |
---|---|
ArgumentException | 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
Type | Name | Description |
---|---|---|
ICanTell | self | TBD |
Object | message | TBD |
Nullable<TimeSpan> | timeout | TBD |
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 |
---|---|---|
ICanTell | self | TBD |
Object | message | TBD |
Nullable<TimeSpan> | timeout | TBD |
CancellationToken | cancellationToken | TBD |
Returns
Type | Description |
---|---|
Task<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
Exceptions
Type | Condition |
---|---|
ArgumentException | 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 |
---|---|---|
ICanTell | self | TBD |
Object | message | TBD |
CancellationToken | cancellationToken | TBD |
Returns
Type | Description |
---|---|
Task<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |