Skip to content
Liminal

Actor Handlers

Handlers implement client methods inside actor context.

The simplest handler pattern is actor-bound.

 
export const  = (
  ...,
  .(function* ({  }) {
    const { , :  } = yield* 
    const {  } = yield* .
 
    yield* ..("MoveMade", { ,  })
    yield* (, , )
  }),
)

handler(method, implementation) is a typed pass-through. It returns the handler unchanged at runtime but narrows its payload, success, and failure types to the supplied method.