Tristram Oaten
42a64245f8
Fix broken async httpclient example
...
As the async httpclient is almost certainly the first async example beginners will want to try, we OWE it to them to give them a real example.
Example repeated here for clarity:
```nim
import asyncdispatch, httpclient
proc asyncProc(): Future[string] {.async.} =
var client = newAsyncHttpClient()
return await client.getContent("http://example.com ")
echo waitFor asyncProc()
```
This is my first Nim contribution, please let me know if the code is right. (it runs on my machine, but may not be the best example)
2020-04-21 00:00:30 +01:00
..
2020-04-18 20:06:20 +02:00
2020-04-16 23:27:08 +02:00
2020-04-19 07:52:01 +02:00
2020-04-20 17:09:59 +02:00
2019-04-20 21:10:52 -05:00
2020-02-07 18:26:08 +01:00
2018-01-05 16:40:51 +02:00
2020-04-05 08:39:43 +02:00
2015-02-03 09:04:24 +01:00
2020-01-17 11:14:17 +01:00
2020-01-24 00:18:16 +01:00
2020-03-19 22:58:16 +01:00
2020-04-05 09:02:30 +02:00
2020-04-06 16:25:24 +02:00
2020-03-22 21:00:37 +01:00
2019-10-22 17:59:12 -07:00
2020-04-01 14:10:27 +02:00
2020-04-20 14:48:37 +02:00
2020-04-06 08:26:12 +02:00
2019-09-30 13:58:17 +02:00
2019-11-06 16:14:28 +01:00
2019-10-28 16:56:38 +01:00
2018-04-30 02:52:58 +02:00
2019-09-30 13:58:17 +02:00
2015-10-01 12:05:45 -07:00
2018-04-15 23:38:43 +02:00
2019-09-30 13:58:17 +02:00
2020-03-20 10:59:05 +01:00
2019-09-30 13:58:15 +02:00
2020-03-13 20:42:41 +01:00
2019-09-30 13:58:15 +02:00
2020-04-02 02:58:43 +02:00
2018-04-06 11:59:49 +02:00
2020-04-19 14:42:45 +02:00
2020-02-21 16:58:30 +01:00
2019-09-30 13:58:08 +02:00
2020-04-21 00:00:30 +01:00
2020-03-19 09:07:44 +01:00
2020-04-07 15:14:25 +02:00
2020-03-13 20:42:41 +01:00
2019-09-30 13:58:08 +02:00
2019-09-30 13:58:17 +02:00
2020-04-08 19:51:23 +02:00
2020-01-16 14:14:03 +01:00
2019-09-30 13:58:10 +02:00
2020-04-20 17:09:59 +02:00
2020-03-31 15:47:57 +02:00
2020-03-31 15:47:57 +02:00
2020-04-20 17:09:59 +02:00
2020-04-20 17:09:59 +02:00
2020-03-25 19:15:34 +01:00
2015-02-03 09:04:24 +01:00
2017-03-14 15:45:35 +01:00
2019-09-30 13:58:10 +02:00
2020-02-21 23:14:55 +01:00
2020-03-31 15:50:24 +02:00
2020-04-10 09:34:52 +02:00
2020-03-19 10:23:05 +01:00
2020-01-24 08:42:03 +00:00
2020-04-01 19:38:44 +02:00
2020-03-11 08:26:10 +01:00
2019-11-18 09:26:06 +01:00
2019-09-30 13:58:08 +02:00
2020-04-02 02:58:43 +02:00
2019-11-07 18:18:51 +01:00
2020-03-05 15:31:22 +01:00
2020-02-27 11:08:57 +01:00
2020-03-31 15:47:57 +02:00
2020-01-16 14:14:03 +01:00
2019-09-30 13:58:05 +02:00
2019-09-30 13:58:13 +02:00
2020-04-02 02:58:43 +02:00
2019-09-30 13:58:15 +02:00
2020-03-13 20:42:41 +01:00
2019-09-30 13:58:11 +02:00
2019-01-11 08:51:19 +01:00
2020-03-26 14:47:15 +01:00
2020-04-01 19:39:58 +02:00
2019-12-29 17:37:22 +01:00
2020-03-13 20:42:41 +01:00
2020-04-02 02:58:43 +02:00
2019-10-08 15:24:34 -04:00
2020-01-05 09:42:44 +01:00
2020-01-28 20:02:07 +01:00
2020-04-15 20:11:18 +02:00
2019-12-05 14:42:20 +01:00
2020-04-18 16:22:03 +02:00
2020-04-14 15:00:02 +02:00
2020-04-20 08:42:08 +02:00
2020-02-07 22:04:08 +01:00
2020-04-13 14:15:45 +01:00
2017-01-25 20:02:19 +01:00
2019-09-30 13:58:08 +02:00
2020-02-26 11:41:44 +01:00