Type

pollable

An object supporting generic async operations.

Can be a http-body.body, http-req.pending-response, http-req.pending-request, cache.pending-entry. kv-store.pending-lookup, kv-store.pending-insert, kv-store.pending-delete, or kv-store.pending-list.

Each async item has an associated I/O action:

  • Pending requests: awaiting the response headers / response object
  • Normal bodies: reading bytes from the body
  • Streaming bodies: writing bytes to the body

For writing bytes, there is a large buffer associated with the handle that bytes can eagerly be written into, even before the origin itself consumes that data.

type pollable = pollable;