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
| Edit this page View SourceAsk(ICanTell, object, 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 |
TimeSpan? | timeout | TBD |
Returns
Type | Description |
---|---|
Task<object> | TBD |
Ask(ICanTell, object, 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 |
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>, 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 |
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, 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 |
TimeSpan? | timeout | TBD |
Returns
Type | Description |
---|---|
Task<T> | TBD |
Type Parameters
Name | Description |
---|---|
T | TBD |
Ask<T>(ICanTell, object, 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 |
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 |