Module async_storage_worker

Source
Expand description

A friendly companion async worker that can be used by a timely storage worker to do work that requires async.

CAUTION: This is not meant for high-throughput data processing but for one-off requests that we need to do every now and then.

Structs§

ActivatingSender 🔒
Helper that makes sure that we always unpark the target thread when we send a message.
AsyncStorageWorker
A worker that can execute commands that come in on a channel and returns responses on another channel. This is useful in places where we can’t normally run async code, such as the timely main loop.

Enums§

AsyncStorageWorkerCommand
Commands for AsyncStorageWorker.
AsyncStorageWorkerResponse
Responses from AsyncStorageWorker.

Functions§

reclock_resume_uppers 🔒