CloudflareQueueDelivery constructor
CloudflareQueueDelivery({})
Creates a queue delivery value.
The callback parameters are used by the JavaScript Worker bridge. They are public only so the host-neutral value can be constructed by that bridge; application code should normally receive deliveries from the Cloudflare queue consumer bridge.
Implementation
CloudflareQueueDelivery({
required this.id,
required this.timestamp,
required this.attempts,
required this.body,
required void Function() acknowledge,
required void Function(Duration? delay) retryHandler,
}) : _acknowledge = acknowledge,
_retryHandler = retryHandler;