Skip to main content

Module tutorial

Module tutorial 

Source
Expand description

simu in 10 minutes — a guided tour, one concept per chapter.

This tutorial mirrors the structure of SimPy’s “SimPy in 10 minutes” so that readers who know SimPy can map their knowledge directly, and newcomers get the gentlest possible on-ramp. Every code block is a doc-test: it compiles and runs on every cargo test, so the tutorial cannot drift out of date.

ChapterYou will learn
ch01_basic_conceptsWhat a process is; spawning; timeouts; running the clock
ch02_waiting_for_processesOne process waiting for another to finish
ch03_events_and_cancellationSignalling between processes; cancelling work early
ch04_shared_resourcesQueuing for limited resources
ch05_how_to_proceedThe rest of the toolbox, and where to go next

Each chapter’s example also exists as a runnable program in examples/ (cargo run --example intro_car, etc.).

This module contains no code — only documentation.

Modules§

ch01_basic_concepts
Chapter 1: Basic concepts — processes, timeouts, and the clock.
ch02_waiting_for_processes
Chapter 2: Waiting for another process.
ch03_events_and_cancellation
Chapter 3: Events, and cancelling work early.
ch04_shared_resources
Chapter 4: Shared resources — queuing for limited capacity.
ch05_how_to_proceed
Chapter 5: How to proceed.