mirror of https://github.com/deavmi/libsnooze
Update README.md
This commit is contained in:
parent
a3dcb3517c
commit
e809f37b9a
|
@ -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();
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue