Closed
Description
Is your feature request related to a problem? Please describe.
With multiple handlers, each handler processes its own signals in order. In order to get in-order delivery of all signals, you need to either:
- only send a single signal type ("fat handler")
- have a catch-all handler that is called when any signal arrives, regardless of type
Describe the solution you'd like
Something like:
import { setGlobalSignalHandler } from '@temporalio/workflow'
setGlobalSignalHandler((signalType: string, arg1: Type1, arg2: Type2) => ...)
When both a global and individual handler is defined, do we only deliver to one of them, or to both?