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

A proof of concept for a discrete event simulation using kotlin's coroutines

License

Notifications You must be signed in to change notification settings

osrd-project/kotlin-async-des

Repository files navigation

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).

About

A proof of concept for a discrete event simulation using kotlin's coroutines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages