- Explained how to get `libsnooze` properly imported and building in your project

This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-19 13:18:10 +02:00
parent e6b0b57ceb
commit 7ac6bc8622
1 changed files with 13 additions and 0 deletions

View File

@ -19,6 +19,19 @@ To see the full documentation (which is always up-to-date) check it out on [DUB]
## Usage
### Importing issues
Currently importing just with `import libsnooze` is broken, we recommend you import as follows:
```d
import libsnooze.clib;
import libsnooze;
```
Which should build!
### Example
Firstly we create an `Event` which is something that can be notified or awaited on. This is simply accomplished as follows:
```d