콘텐츠로 이동
한국어

BehaviorInterceptor

이 콘텐츠는 아직 번역되지 않았습니다.

BehaviorInterceptor<T> = (context, message, next) => Behavior<T>

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

Runs on every message before the wrapped behavior does. Whatever it returns becomes the wrapped behavior’s next behavior — the interceptor itself stays installed across that transition, so next(...)’s result can simply be returned as-is.

T → T only: an interceptor observes, transforms, or drops messages, it does not change the actor’s message type.

T

TypedActorContext<T>

T

BehaviorInterceptorTarget<T>

Behavior<T>