nim-chronos/tests
Jacek Sieka 0035f4fa66
Introduce `chronos/futures` (#405)
* move `Future[T]` into its own module along with some basic accessors
* mark all fields internal, exposing only read-only versions under the
old names
* introduce `init`/`completed`/etc as a way of creating a future (vs
newFuture)
* introduce `LocationKind` for `SrcLoc` access
* don't expose `FutureList` unless future tracking is enabled
* introduce `chronosStrictFutureAccess` which controls a number of
additional `Defect` being raised when accessing Future fields in the
wrong state - this will become true in a future version

In this version, `Future[T]` backwards compatibility code remains in
`asyncfutures2` meaning that if only `chronos/futures` is imported, only
"new" API is available.

This branch is a refinement / less invasive / minimal version of
https://github.com/status-im/nim-chronos/pull/373.
2023-06-07 20:04:07 +02:00
..
config.nims Add nimRawSetjmp define to config.nims (#285) 2022-06-14 01:02:33 +03:00
testaddress.nim Compile-time configuration (#371) 2023-03-31 07:35:04 +02:00
testall.nim Introduce `chronos/futures` (#405) 2023-06-07 20:04:07 +02:00
testasyncstream.nim Add `localAddress` support to `stream.connect` (#362) 2023-04-03 15:34:35 +03:00
testbugs.nim clean up `Defect` (#404) 2023-06-05 22:21:50 +02:00
testdatagram.nim exception warning fixes (#403) 2023-06-05 13:03:38 +02:00
testfut.nim Future cleanup (#393) 2023-05-25 17:31:35 +02:00
testfutures.nim Introduce `chronos/futures` (#405) 2023-06-07 20:04:07 +02:00
testhttpclient.nim exception warning fixes (#403) 2023-06-05 13:03:38 +02:00
testhttpserver.nim Eliminate warnings on Windows. (#382) 2023-04-30 19:09:36 +02:00
testmacro.nim Support implicit returns (#401) 2023-06-05 13:02:13 +02:00
testnet.nim exception warning fixes (#403) 2023-06-05 13:03:38 +02:00
testproc.bat Asyncproc (Part 3/3) (#374) 2023-05-23 12:39:35 +02:00
testproc.nim Asyncproc (Part 3/3) (#374) 2023-05-23 12:39:35 +02:00
testproc.sh Asyncproc (Part 3/3) (#374) 2023-05-23 12:39:35 +02:00
testratelimit.nim Compile-time configuration (#371) 2023-03-31 07:35:04 +02:00
testserver.nim Compile-time configuration (#371) 2023-03-31 07:35:04 +02:00
testshttpserver.nim Eliminate warnings on Windows. (#382) 2023-04-30 19:09:36 +02:00
testsignal.nim Add facility to emulate signals on Windows. (#357) 2023-06-02 01:53:20 +03:00
testsoon.nim clean up `Defect` (#404) 2023-06-05 22:21:50 +02:00
teststream.nim exception warning fixes (#403) 2023-06-05 13:03:38 +02:00
testsync.nim Compile-time configuration (#371) 2023-03-31 07:35:04 +02:00
testtime.nim Compile-time configuration (#371) 2023-03-31 07:35:04 +02:00
testutils.nim Future cleanup (#393) 2023-05-25 17:31:35 +02:00