pid.PipeTo or ctx.PipeTo when the sender (pid or ctx.Self()) is a remote PID returns ErrNotLocal. The task runs in a goroutine on the caller’s node; remote PIDs do not have a local execution context to run it.
API
From ReceiveContext
From PID
From GrainContext
Task signature
- On success: the
anyresult is sent to the target as a normal message. - On failure: the error is forwarded to the dead-letter queue, unless
WithCircuitBreakeris used and the breaker is open (in which case the outcome is dropped).
PipeOption
Only one of
WithTimeout or WithCircuitBreaker may be used per call. Using both returns ErrOnlyOneOptionAllowed.
Example
*http.Response (or the task fails and the error is handled per options).