mirror of
https://github.com/logos-storage/nim-chronos.git
synced 2026-01-22 15:23:09 +00:00
19 lines
970 B
Markdown
19 lines
970 B
Markdown
|
|
# Examples
|
||
|
|
|
||
|
|
Examples are available in the [`docs/examples/`](https://github.com/status-im/nim-chronos/tree/master/docs/examples/) folder.
|
||
|
|
|
||
|
|
## Basic concepts
|
||
|
|
|
||
|
|
* [cancellation](https://github.com/status-im/nim-chronos/tree/master/docs/examples/cancellation.nim) - Cancellation primer
|
||
|
|
* [timeoutsimple](https://github.com/status-im/nim-chronos/tree/master/docs/examples/timeoutsimple.nim) - Simple timeouts
|
||
|
|
* [timeoutcomposed](https://github.com/status-im/nim-chronos/tree/master/docs/examples/examples/timeoutcomposed.nim) - Shared timeout of multiple tasks
|
||
|
|
|
||
|
|
## TCP
|
||
|
|
|
||
|
|
* [tcpserver](https://github.com/status-im/nim-chronos/tree/master/docs/examples/tcpserver.nim) - Simple TCP/IP v4/v6 echo server
|
||
|
|
|
||
|
|
## HTTP
|
||
|
|
|
||
|
|
* [httpget](https://github.com/status-im/nim-chronos/tree/master/docs/examples/httpget.nim) - Downloading a web page using the http client
|
||
|
|
* [twogets](https://github.com/status-im/nim-chronos/tree/master/docs/examples/twogets.nim) - Download two pages concurrently
|