| PipeToSupportPipeTo Method (Task, ICanTell, IActorRef, FuncObject, FuncException, Object) |
Pipes the output of a Task directly to the recipient's mailbox once
the task completes. As this task has no result, only exceptions will be piped to the recipient
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public static Task PipeTo(
this Task taskToPipe,
ICanTell recipient,
IActorRef sender = null,
Func<Object> success = null,
Func<Exception, Object> failure = null
)
[<ExtensionAttribute>]
static member PipeTo :
taskToPipe : Task *
recipient : ICanTell *
?sender : IActorRef *
?success : Func<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.TasksTask
TBD - recipient
- Type: Akka.ActorICanTell
TBD - sender (Optional)
- Type: Akka.ActorIActorRef
TBD - success (Optional)
- Type: SystemFuncObject
TBD - failure (Optional)
- Type: SystemFuncException, Object
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. 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