Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Latest commit

 

History

History
13 lines (11 loc) · 1.03 KB

README.md

File metadata and controls

13 lines (11 loc) · 1.03 KB

Discrete Event Simulation using Kotlin coroutines

A discrete event simulation implemented as a kotlin custom event loop. Unfortunately, not all APIs required to pull it off are stable:

  • the EventLoop API is private, which prevents hooking into runBlocking. runSimulation is an equivalent of runBlocking, reconstructed using the public API.
  • the Delay API is required to properly hook into the delay function. This API is public, but marked as internal, which requires @OptIn(InternalCoroutinesApi::class).