Package dev.gmitch215.bytebox


package dev.gmitch215.bytebox
Worker entry points and the HTTP types a handler works in.

A Worker implements one interface per trigger it handles — Worker for HTTP, Scheduled for a Cron Trigger, and so on. Implementing only what you handle is what keeps an unhandled trigger out of the generated configuration and out of the compiled binary.

Every handler looks synchronous and suspends underneath. A binding call returns a value rather than a future because the compiler rewrites a blocking call into a continuation the host resumes. There is no parallelism to go with it: Cloudflare Workers run one thread and do not provide the Web Worker API, so a Java thread here is a fiber on the host's queue.

Since:
1.0.0