Prelude API
    Preparing search index...

    Type Alias Receive<M, S, R>

    Receive: (message: M, state: S, context: Context<M, S>) => R | Promise<R>

    Message handler; the returned value is the reply for Ref.ask.

    Type Parameters

    • M
    • S
    • R = void

    Type Declaration

      • (message: M, state: S, context: Context<M, S>): R | Promise<R>
      • Parameters

        Returns R | Promise<R>