Update README.md

This commit is contained in:
Tristan B. Velloza Kildaire 2023-02-26 17:51:46 +02:00 committed by GitHub
parent a3dcb3517c
commit e809f37b9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,10 @@
<br>
<br>
## API
To see the full documentation (which is always up-to-date) check it out on [DUB](https://libsnooze.dpldocs.info/).
## Usage
Firstly we create an `Event` which is something that can be notified or awaited on. This is simply accomplished as follows:
@ -51,4 +55,4 @@ Now on the main thread we can do the following to wakeup waiting threads:
```d
/* Wake up all sleeping on this event */
event.notifyAll();
```
```