| PipeToSupportPipeToT Method (TaskT, ICanTell, IActorRef, FuncT, Object, FuncException, 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.129 (1.2.3.129)
Syntax public 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.TasksTaskT
TBD - recipient
- Type: Akka.ActorICanTell
TBD - sender (Optional)
- Type: Akka.ActorIActorRef
TBD - success (Optional)
- Type: SystemFuncT, Object
TBD - failure (Optional)
- Type: SystemFuncException, 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
TaskT. 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