OptionalkeyOptionalactionsRestrict to specific actions (glob patterns). Default: all.
OptionalscopeWhere the serialization lane lives.
'instance' (default): a per-bus in-memory FIFO queue. Same-key commands
serialize within THIS bus instance only.'cross-tab': use the Web Locks API (navigator.locks) so same-key
commands serialize across every tab / window of the same origin — true
browser-arbitrated mutual exclusion, no custom transport. Automatically
falls back to the 'instance' queue when navigator.locks is unavailable
(SSR, older browsers, or workers without the API).OptionallockWeb Locks name prefix used in 'cross-tab' mode. Default: 'vapor-chamber:serialize'.
Derive the serialization key from a command. Commands resolving to the SAME key run strictly one-at-a-time (FIFO); different keys run concurrently. Return
null/undefinedto skip serialization for that command. Default:cmd.action(each action serialized against itself).