ActorHandleRaw.prototype.once<Args extends Array<unknown> = unknown[]>(eventName: string,callback: (...args: Args) => void,): EventUnsubscribe
Subscribes to an event that will be triggered only once.
Args extends Array<unknown> = unknown[]
- The type of arguments the event callback will receive.
- A function to unsubscribe from the event.