Crate deterministic [] [src]

A collection of simple utilities for building flake-free testable systems.

Modules

file

Files that can simulate power failures by losing data written after the last sync.

Structs

Rand

Constants

CONTEXT

Traits

Reactor

A trait for building networked systems that can be plugged into simulated networks and partition tested in accelerated time.

Functions

now
prioritize
seed
set_seed
set_time

set the time for this thread and its spawned descendents

spawn

Spawn a thread and transfer the deterministic Context.

spawn_with_prio

Spawn a thread with a specific realtime priority.

spawn_with_random_prio

Spawn a thread with a thread priority determined by a (possibly pre-seeded) rand::Rng.

thread_rng