PipeToSupportPipeToT Method |
Pipes the output of a Task directly to the [!:recipient]'s mailbox once
the task completes
Namespace: Akka.ActorAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic static Task PipeTo<T>(
this Task<T> taskToPipe,
ICanTell recipient,
ActorRef sender = null
)
<ExtensionAttribute>
Public Shared Function PipeTo(Of T) (
taskToPipe As Task(Of T),
recipient As ICanTell,
Optional sender As ActorRef = Nothing
) As Task
public:
[ExtensionAttribute]
generic<typename T>
static Task^ PipeTo(
Task<T>^ taskToPipe,
ICanTell^ recipient,
ActorRef^ sender = nullptr
)
[<ExtensionAttribute>]
static member PipeTo :
taskToPipe : Task<'T> *
recipient : ICanTell *
?sender : ActorRef
(* Defaults:
let _sender = defaultArg sender null
*)
-> Task
Parameters
- taskToPipe
- Type: System.Threading.TasksTaskT
[Missing <param name="taskToPipe"/> documentation for "M:Akka.Actor.PipeToSupport.PipeTo``1(System.Threading.Tasks.Task{``0},Akka.Actor.ICanTell,Akka.Actor.ActorRef)"]
- recipient
- Type: Akka.ActorICanTell
[Missing <param name="recipient"/> documentation for "M:Akka.Actor.PipeToSupport.PipeTo``1(System.Threading.Tasks.Task{``0},Akka.Actor.ICanTell,Akka.Actor.ActorRef)"]
- sender (Optional)
- Type: Akka.ActorActorRef
[Missing <param name="sender"/> documentation for "M:Akka.Actor.PipeToSupport.PipeTo``1(System.Threading.Tasks.Task{``0},Akka.Actor.ICanTell,Akka.Actor.ActorRef)"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Akka.Actor.PipeToSupport.PipeTo``1(System.Threading.Tasks.Task{``0},Akka.Actor.ICanTell,Akka.Actor.ActorRef)"]
Return Value
Type:
Task[Missing <returns> documentation for "M:Akka.Actor.PipeToSupport.PipeTo``1(System.Threading.Tasks.Task{``0},Akka.Actor.ICanTell,Akka.Actor.ActorRef)"]
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