konsumlamm
9819fb21d8
Use .. warning:: ( #17320 )
2021-03-10 10:39:23 -08:00
flywind
5670b848cb
use .. warning:: ( #17226 )
...
* remove unnecessary when statement
* remove outdated codes
* use warnings
2021-03-04 11:34:55 +01:00
flywind
47c078e29c
use single backtick ( #17166 )
2021-02-23 21:05:39 -08:00
Timothee Cour
31bb67a309
add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes ( #16764 )
2021-02-17 19:30:09 +01:00
Elliot Waite
f3d57761ab
Fix broken links in docs ( #16336 )
...
* Fix broken links in docs
* Fix rand HSlice links
2020-12-14 20:13:12 +01:00
Andreas Rumpf
c9a10bb9e4
fixes #16154 ; underlying system.add for seq is the real cause; will be addressed in a follow-up PR ( #16161 )
2020-11-27 15:26:57 +01:00
Araq
9f566881f1
ported to FreeRTOS
2020-11-13 17:03:07 +01:00
Araq
19d52033f8
fixes 'nim doc'
2020-11-13 13:50:57 +01:00
Araq
8778d4a6f3
attempt to make asynchttpserver better; fixes #15925 ; [backport:1.0]
2020-11-13 13:03:14 +01:00
Andreas Rumpf
a15d77df7e
ORC/ARC async progress ( #15370 )
...
* ARC/ORC: fixes memory leak for empty seqs that have a non-zero capacity
* async: minor refactorings
* it helps to finish a refactoring
2020-09-20 00:27:32 +02:00
Andreas Rumpf
9a34009f00
ORC and stdlib optimizations ( #15362 )
2020-09-19 00:27:43 +02:00
Andreas Rumpf
2671efab78
async: minor refactorings ( #15354 )
2020-09-18 11:22:34 +02:00
flywind
3ce32a7e40
export asyncdispatch handles ( #15140 )
...
* improve epoll docs
* export handles
* add comments and changelog
2020-08-01 21:27:21 +02:00
Dominik Picheta
1e3a0ef1e1
[Backport] Fixes callbacks being dropped on Linux/macOS/BSD. ( #15012 )
...
Fixes #15003 .
This is a serious bug which occurs when data cannot be read/sent
immediately and there are a bunch of other read/write events
pending. What happens is that the new events are dropped which
results in the case of the reported bug resulted in some data not
being sent (!).
2020-07-19 08:41:36 +02:00
Juan Carlos
a519f3b038
Removed asyncdispatch.newAsyncNativeSocket, was deprecated since 0.18 ( #14854 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-06-30 16:29:53 +02:00
Ray Imber
36fa79a524
Fix asyncdispatch drain behavior ( #14820 ) ( #14838 )
...
* Fix asyncdispatch drain behavior (#14820 )
* Changed test to use asyncCheck instead of discard after code review (#14820 )
* Added some debug statements to help understand what is happening in Azure.
* Removed debug statements and increased timeouts by 1 order of magnitude to account for slow Azure VMs
Co-authored-by: Ray Imber <ray@crankuptheamps.com >
2020-06-30 15:23:53 +02:00
Miran
e7f280bd26
Remove deprecated stuff from stdlib ( #14699 )
...
* update to the latest Jester
* remove deprecated procs from some stdlib modules
* 'criterion' is not maintained anymore and relies on obsolete stuff
2020-06-17 15:25:02 +02:00
alaviss
4ae341353d
asyncdispatch, asyncnet: add inheritance control ( #14362 )
...
* asyncdispatch, asyncnet: add inheritance control
* asyncnet, asyncdispatch: cleanup
2020-05-20 09:42:55 +02:00
slangmgh
76f7e95814
Fix #14289 ( #14304 ) [backport]
2020-05-11 19:17:37 +02:00
hlaaftana
0aefebb728
JS unittest stacktrace fix, cleanup js repr and inclrtl includes ( #14168 )
2020-04-30 17:04:53 +01:00
alaviss
7beed44fc9
asyncdispatch: export Callback ( #14042 ) [backport]
...
This let us see the definition of `Callback` in docs, which is required
to even make use of asyncdispatch.
Ref #13539 .
2020-04-21 11:21:36 +02:00
alaviss
813ed358bf
asyncdispatch: get rid of erroneous set constructions ( #13877 )
...
Ref #13764
2020-04-05 08:39:43 +02:00
alaviss
2da438c33b
asyncdispatch: fix erroneous set construction ( #13765 )
...
These constants were defined as `cint`. They can be huge on certain
systems, such as Haiku, and trigger out-of-bounds errors in
asyncdispatch.
Ref #13764 .
2020-03-26 09:26:56 +01:00
Miran
5b55aa52d0
fix deprecations and other warnings ( #13748 )
2020-03-25 19:15:34 +01:00
Timothee Cour
6e0c06f50e
fix #13218 : avoid some irrelevant warnings for nim doc,rst2html,--app:lib, + other fixes ( #13550 )
...
* fix #13218 : avoid some irrelevant warnings for nim doc,rst2html
* suppress warnRedefinitionOfLabel for nim doc
* lots of fixes for UnusedImport warnings
2020-03-13 20:42:41 +01:00
Araq
3aed8ff432
fixes async regression
2020-03-11 09:26:57 +01:00
Araq
861a5340fe
fixes #13519
2020-03-11 09:26:57 +01:00
Andreas Rumpf
7626907401
ARC works for async on Windows ( #13179 )
2020-01-17 11:14:17 +01:00
Araq
2dea920379
ARC: implemented a simple cycle detector
2019-11-28 23:00:34 +01:00
Jack Tang
f0c5d99924
index out of bounds exception when data is empty ( #12428 )
2019-11-22 15:37:59 +01:00
Araq
eea0cb07cf
async: cleaner solution that avoids GC_ref on strings which doesn't exist for --gc:arc
2019-11-13 23:29:21 +01:00
Ray Imber
4e6f2b5313
Fix drain to correctly take into account hasPendingOperations and the timeout value
2019-10-10 17:53:44 -07:00
narimiran
aa513d78e7
[backport] run nimpretty on async
2019-09-30 13:57:58 +02:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
PMunch
2565d3d102
Fix issue with long wait for passed timer [bugfix] ( #12221 )
...
* Fix issue with long wait for passed timer [bugfix]
This fixes a small issue where a timer that had been completed while
code executed would still wait for more events before being considered
completed. This would in some scenarios incur a 500ms delay to the
completion of a timer.
* Refactor logic into
* Add test case based on original issue
* Use longer timeouts to be more lenient in checking
* Revert to short timeouts, but widen the accepted range
* Widen accepted range further, it is meant to check for a 500ms delay after all
* Increase poll timeout to make it easier to detect mistakes
2019-09-22 07:24:14 +02:00
Araq
908b553215
asyndispatch: removed deprecated setEvent proc
2019-09-21 06:43:37 +02:00
Oscar Nihlgård
1f32498a47
Use std/monotimes in the stdlib
2019-07-16 11:05:42 +02:00
Araq
bc7733827d
make more parts of the stdlib compile with --styleCheck:error
2019-07-10 15:48:30 +02:00
Araq
c94647aeca
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
2019-07-10 12:42:41 +02:00
Araq
7993d61d00
async: more 'owned' annotations
2019-07-09 11:38:00 +02:00
Andreas Rumpf
5f515410af
newruntime for async ( #11650 )
...
* fixes overloading resolution for passing owned(Future[string]) to Future[T]
* WIP: make --newruntime work with .async
* memtracker: make it compile again
* make Nimble compile again
2019-07-05 01:42:17 +02:00
Dominik Picheta
73c44c6e9b
[bugfix] Fixes async IO operations stalling even after socket is closed. ( #11232 )
2019-06-12 17:07:05 +02:00
LemonBoy
7d217a71d3
Render deprecated pragmas ( #8886 )
...
* Render deprecated pragmas
* fix the expected html
* clean up the documentation regarding deprecations
* fix typo
* fix system.nim
* fix random
2019-06-03 10:15:20 +02:00
Dominik Picheta
d0b8724aa2
Fixes crashes when asyncdispatch.adjustTimeout returns a negative value. ( #11231 )
2019-05-15 18:15:10 +02:00
Dominik Picheta
abe634aefe
Implements pending future tracking in async.
2019-05-06 17:18:30 +01:00
Zed
3b4952da94
Fix header inconsistencies in documentation ( #11071 )
2019-04-23 08:40:20 +02:00
Zed
88079a0dee
Documentation import fixes ( #11070 )
...
* Move asyncdispatch imports below introduction
* Move nre imports below documentation
2019-04-21 09:45:05 +02:00
Andreas Rumpf
32c9ca605e
fixes #10795
2019-03-06 10:15:27 +01:00
Miran
0ebfcd4c0f
Remove deprecated modules (asyncio, sockets, ftpclient) ( #10401 )
2019-01-22 16:06:44 +01:00
Dominik Picheta
775bfb3e8d
Merge async common into asyncdispatch.
2018-12-07 22:47:10 +00:00