Zum Inhalt springen
Deutsch

BehaviorInterceptorTarget

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

BehaviorInterceptorTarget<T> = (context, message) => Behavior<T>

Defined in: src/typed/Behavior.ts:70

Hands a message on to the behavior an interceptor wraps, and answers what that behavior returned. Calling it is the delegation; not calling it short-circuits, and the wrapped behavior never sees the message.

Both arguments are the interceptor’s to choose: pass a different message to transform it on the way in, or a decorated context to change what the inner handler sees. Passing them through unchanged is the plain “observe, then delegate” case.

T

TypedActorContext<T>

T

Behavior<T>