Expand description
Watermark and Closer implementation for implementing transaction.
Structs§
- AsyncCloser holds the two things we need to close a thread and wait for it to finish: a chan to tell the thread to shut down, and a WaitGroup with which to wait for it to finish shutting down.
- AsyncStdSpawner
async-stdAAsyncSpawnerthat uses theasync-stdruntime. - AsyncWaterMark
futureWaterMark is used to keep track of the minimum un-finished index. Typically, an index k becomes finished or “done” according to a WaterMark oncedone(k)has been called - Closer holds the two things we need to close a thread and wait for it to finish: a chan to tell the thread to shut down, and a WaitGroup with which to wait for it to finish shutting down.
- SmolSpawner
smolAAsyncSpawnerthat uses thesmolruntime. - TokioSpawner
tokioandfutureAAsyncSpawnerthat uses thetokioruntime. - WasmSpawner
wasmAAsyncSpawnerthat uses thewasm-bindgen-futuresruntime. - WaterMark is used to keep track of the minimum un-finished index. Typically, an index k becomes finished or “done” according to a WaterMark once
done(k)has been called
Enums§
- Error type for watermark.
Traits§
- AsyncSpawner
futureA spawner trait for spawning futures. - Detach
futureDetaches the task related to the join handle to let it keep running in the background.