 | PipeToSupport.PipeTo<T> Method (Task<T>, ICanTell, IActorRef, Func<T, Object>, Func<Exception, Object>) |
Pipes the output of a Task directly to the recipient's mailbox once
the task completes
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntaxpublic static Task PipeTo<T>(
this Task<T> taskToPipe,
ICanTell recipient,
IActorRef sender = null,
Func<T, Object> success = null,
Func<Exception, Object> failure = null
)
[<ExtensionAttribute>]
static member PipeTo :
taskToPipe : Task<'T> *
recipient : ICanTell *
?sender : IActorRef *
?success : Func<'T, Object> *
?failure : Func<Exception, Object>
(* Defaults:
let _sender = defaultArg sender null
let _success = defaultArg success null
let _failure = defaultArg failure null
*)
-> Task
Parameters
- taskToPipe
- Type: System.Threading.Tasks.Task<T>
TBD - recipient
- Type: Akka.Actor.ICanTell
TBD - sender (Optional)
- Type: Akka.Actor.IActorRef
TBD - success (Optional)
- Type: System.Func<T, Object>
TBD - failure (Optional)
- Type: System.Func<Exception, Object>
TBD
Type Parameters
- T
- TBD
Return Value
Type:
TaskTBD
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Task<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also