Aller au contenu
Français

pipeTo

Ce contenu n’est pas encore disponible dans votre langue.

pipeTo<T>(promise, recipient, options?): Promise<T>

Defined in: src/pattern/pipeTo.ts:22

Route the eventual result of promise into an actor’s mailbox. On fulfilment the value (or Success<T>) lands as a message. On rejection Failure(error) is delivered so the actor can react.

Returns the same promise so callers can chain further logic if needed.

T

Promise<T>

ActorRef

PipeToOptions = {}

Promise<T>