summary refs log tree commit diff stats
path: root/lib/std/tasks.nim
Commit message (Collapse)AuthorAgeFilesLines
* allow tuples and procs in 'toTask' + minor things (#22530)Andreas Rumpf2023-08-221-1/+1
|
* clean up `gc:arc` or `gc:orc` in docs and in error messages (#22408)ringabout2023-08-081-2/+2
| | | | | * clean up gc:arc/orc in docs * in error messages
* allow destructors to accept non var parameters; deprecate `proc =destroy(x: ↵ringabout2023-06-211-6/+14
| | | | | | | | | | var T)` (#22130) * make destructors accept non var parameters * define nimAllowNonVarDestructor * add a test case and a changelog * update documentation and error messages * deprecate destructors taking 'var T'
* tasks that support return values (#21859)Andreas Rumpf2023-05-171-25/+35
| | | tasks.nim: Code cleanups and support expressions that produce a value
* improve error message when using `toTask` with a call with a return value ↵ringabout2022-10-231-1/+2
| | | | (#20622)
* make more standard libraries work with `nimPreviewSlimSystem` (#20343)ringabout2022-09-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | * make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
* enable style:usages for stdlib tests [backport: 1.6] (#19715)flywind2022-04-131-1/+1
| | | | | | | | | | | | | | | * enable style:usages for stdlib tests * freeAddrInfo * more tests * importc * bufSize * fix more * => parseSql and renderSql
* improve the error messages for std/tasks [backport: 1.6] (#19695)flywind2022-04-071-6/+6
|
* std/tasks: fix spelling (#19691) [backport]Jacek Sieka2022-04-061-2/+2
| | | | | | why aren't these not being caught by style check options? --styleCheck:usages finds it. Co-authored-by: flywind <xzsflywind@gmail.com>
* [std/tasks] more gcsafe stuffs [backport] (#18926)flywind2021-09-301-3/+3
|
* [std/tasks]add gcsafe pragmas (#17799)flywind2021-04-211-4/+4
| | | | | * [std/tasks]add gcsafe pragmas * Update tasks.nim
* callback cannot be nil (#17718)flywind2021-04-141-0/+1
| | | | | | | `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
* add std/tasks (#17447)flywind2021-04-091-0/+272