BunWorkerRunner
Worker-entrypoint support for Bun worker runners.
This module exports a layer that provides WorkerRunnerPlatform for code already running inside a Bun Worker. The platform receives request messages from the parent-side BunWorker platform, runs the registered handler, sends responses through the worker postMessage channel, and closes when the parent sends the close message.
Provides the
WorkerRunnerPlatformfor code running inside a Bun worker, routing parent messages to the registered handler and sending responses back through the worker port.