about summary refs log tree commit diff stats
path: root/src/js/timeout.nim
Commit message (Collapse)AuthorAgeFilesLines
* timeout: accept err stream as parambptato2024-09-301-8/+6
| | | | | gets rid of a todo. (not sure why I thought this was important, but it sure looks nicer)
* Replace std/selectors with pollbptato2024-09-231-40/+73
| | | | | | | | | | | | std/selectors uses OS-specific selector APIs, which sounds good in theory (faster than poll!), but sucks for portability in practice. Sure, you can fix portability bugs, but who knows how many there are on untested platforms... poll is standard, so if it works on one computer it should work on all other ones. (I hope.) As a bonus, I rewrote the timeout API for poll, which incidentally fixes setTimeout across forks. Also, SIGWINCH should now work on all platforms (as we self-pipe instead of signalfd/kqueue magic).
* Update monouchabptato2024-08-091-3/+3
|
* buffer, pager, config: add meta-refresh + misc fixesbptato2024-07-281-5/+15
| | | | | | | | | * buffer, pager, config: add meta-refresh value, which makes it possible to follow http-equiv=refresh META tags. * config: clean up redundant format mode parser * timeout: accept varargs for params to pass on to functions * pager: add "options" dict to JS gotoURL * twtstr: remove redundant startsWithNoCase
* timeout: simplify, misc fixesbptato2024-07-161-76/+47
| | | | | | Merge timeout & interval code paths. This fixes clearTimeout not clearing intervals.
* timeout: fix jsvalue leakbptato2024-07-101-13/+27
|
* Move JS wrapper into Monouchabptato2024-06-031-1/+1
| | | | Operation "modularize Chawan somewhat" part 3
* io: derive DynStream from RootObj (not Stream)bptato2024-03-241-8/+8
| | | | | | | | This way they are no longer compatible, but we no longer need them to be compatible anyway. (This also forces us to throw out the old serialize module, and use packet writers everywhere.)
* Use std/* imports everywherebptato2024-01-071-3/+3
|
* client, timeout: simplifybptato2023-09-241-9/+9
| | | | | We don't use the generic feature of selectors, so just unify the client & buffer timeout types.
* Add setTimeout, setInterval to windowbptato2023-06-011-0/+104