Commit graph

3 commits

Author SHA1 Message Date
flywind
603af22b7c
[std/tasks]add gcsafe pragmas (#17799)
* [std/tasks]add gcsafe pragmas

* Update tasks.nim
2021-04-21 11:05:16 +08:00
flywind
44657b78c4
callback cannot be nil (#17718)
`Task.callback` cannot be nil, we need to raise it at debug and release mode

Situations:
- if users create a Task object without using `toTask` and invoke the Task
- if users already move the Task and invoke the Task
2021-04-14 19:14:14 +02:00
flywind
f25243140b
add std/tasks (#17447) 2021-04-09 11:51:51 +02:00