Commit Graph

27 Commits (ea2f97e9ed8317dc9a62e45d9a807dca7e3700a5)

Author SHA1 Message Date
Matthew Wild 06da62a6fe util.async tests: Explicitly import match from luassert (luacheck) 4 years ago
Matthew Wild d46c43fbeb util.async: Add next-tick configuration 4 years ago
Matthew Wild cfef2c6ef6 util.async: Add sleep() method with configurable scheduling backend 4 years ago
Kim Alvefur e0bcb4d7d4 tests: Silence [luacheck] warnings 6 years ago
Matthew Wild 072c04815b util.async: Remove async.once(), can now be replaced by runner():run(func) 8 years ago
Matthew Wild 8a38579fa0 util.async: Make parameters to async.runner() optional 8 years ago
Kim Alvefur 1ca1c9bb32 util.async: Use wrapper for once runner (thanks luacheck) 8 years ago
Matthew Wild cdff82828c util.async: tests: ensure async.once() propagates errors 8 years ago
Matthew Wild 38ac92b0df util.async: Add once() to create temporary runners 8 years ago
Matthew Wild b48a2409e7 util.async: Add ready() to check whether running in async context 8 years ago
Matthew Wild 8ad948e59b util.async: tests: more code re-use 8 years ago
Matthew Wild ed7283ed91 util.async: tests: luacheck-clean, fixes some actual issues 8 years ago
Matthew Wild 7cbea568aa util.async: tests: remove obsolete code and comments 8 years ago
Matthew Wild e434f94399 util.async: tests: slight modifications to allow more code reuse in tests 8 years ago
Matthew Wild b539a1019f util.async: Add some more tests for wait/done 8 years ago
Matthew Wild 94e19dce41 util.async: tests: Ensure done() can be called before wait() 8 years ago
Matthew Wild c2ef1d7b32 util.async: tests: Add helper function to create mock watcher callbacks 8 years ago
Kim Alvefur f8e8180262 util.async: Trim trailing whitespace in tests [luacheck] 8 years ago
Matthew Wild f1f9179285 util.async: tests: replace peeking at internal state with monitoring correct callback behaviour 8 years ago
Matthew Wild 559c40a50a util.async: if debugging is enabled, use runner id in logs 8 years ago
Matthew Wild 2fbef935f9 util.async: ensure change in e77b37de482e applies after out-of-loop resume also 8 years ago
Matthew Wild 9d1d5d021b util.async: Behaviour change: continue to process queued items after errors 8 years ago
Matthew Wild 3802dc1555 util.async: Yet more tests 8 years ago
Matthew Wild 5c0a12d4d1 util.async: Ensure runner is left in correct state after out-of-main-loop error (+tests) 8 years ago
Matthew Wild 2f1f98e1b5 util.async: Add test to ensure waiters throw an error outside async contexts 8 years ago
Matthew Wild b0211d2247 util.async: Add tests to specifically cover error handling 8 years ago
Matthew Wild f755b85ad1 util.async: Add tests 8 years ago