Crate waterark

Crate waterark 

Source
Expand description

Waterark

Watermark for implementing optimistic SSI (Serializable Snapshot Isolation) transactions

github LoC Build codecov

docs.rs crates.io crates.io license

§Installation

  • Default

    [dependencies]
    waterark = "0.2"
  • Using in async runtimes with std

    • tokio

      [dependencies]
      waterark = { version = "0.2", default-features = false, features = ["tokio", "std"] }
    • smol

      [dependencies]
      waterark = { version = "0.2", default-features = false, features = ["smol", "std"] }
    • async-std

      #[dependencies]
      waterark = { version = "0.2", default-features = false, features = ["async-std", "std"] }
    • wasm

      #[dependencies]
      waterark = { version = "0.2", default-features = false, features = ["wasm", "std"] }
  • Using in async runtimes without std

    [dependencies]
    waterark = { version = "0.2", default-features = false, features = ["alloc", "future"] }

§License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Modules§

closerfuture or sync
Closer implementations.
futurefuture
Asynchronous watermark implementation.
syncsync
Synchronous watermark implementation.

Structs§

AsyncStdSpawnerasync-std
A AsyncSpawner that uses the async-std runtime.
AsyncWaterMarkfuture
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
SmolSpawnersmol
A AsyncSpawner that uses the smol runtime.
TokioSpawnertokio and future
A AsyncSpawner that uses the tokio runtime.
WasmSpawnerwasm
A AsyncSpawner that uses the wasm-bindgen-futures runtime.
WaterMarksync
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§

WaterMarkError
Error type for watermark.

Traits§

AsyncSpawnerfuture
A spawner trait for spawning futures.
Detachfuture
Detaches the task related to the join handle to let it keep running in the background.