Commit Graph

23 Commits (bc3d454dd6f46292f08f4f724203de22a85800ca)

Author SHA1 Message Date
Matthew Wild bd3df4fa36 util.async: Remove async.once(), can now be replaced by runner():run(func) 8 years ago
Matthew Wild a8f9a2757f util.async: Make parameters to async.runner() optional 8 years ago
Kim Alvefur 98482848ca util.async: Use wrapper for once runner (thanks luacheck) 8 years ago
Matthew Wild caab5a40c2 util.async: tests: ensure async.once() propagates errors 8 years ago
Matthew Wild c600e0f6f6 util.async: Add once() to create temporary runners 8 years ago
Matthew Wild 430eef8420 util.async: Add ready() to check whether running in async context 8 years ago
Matthew Wild d176928882 util.async: tests: more code re-use 8 years ago
Matthew Wild f4887f8564 util.async: tests: luacheck-clean, fixes some actual issues 8 years ago
Matthew Wild f172b0b10d util.async: tests: remove obsolete code and comments 8 years ago
Matthew Wild 3f856fe199 util.async: tests: slight modifications to allow more code reuse in tests 8 years ago
Matthew Wild 081be0d0ed util.async: Add some more tests for wait/done 8 years ago
Matthew Wild 86ac07d8bc util.async: tests: Ensure done() can be called before wait() 8 years ago
Matthew Wild 62e076edbb util.async: tests: Add helper function to create mock watcher callbacks 8 years ago
Kim Alvefur 6dd39bd911 util.async: Trim trailing whitespace in tests [luacheck] 8 years ago
Matthew Wild 0e9588fadb util.async: tests: replace peeking at internal state with monitoring correct callback behaviour 8 years ago
Matthew Wild fb4be1b7d5 util.async: if debugging is enabled, use runner id in logs 8 years ago
Matthew Wild f0d4a5254e util.async: ensure change in e77b37de482e applies after out-of-loop resume also 8 years ago
Matthew Wild 3148c6b4f7 util.async: Behaviour change: continue to process queued items after errors 8 years ago
Matthew Wild 7d562e915e util.async: Yet more tests 8 years ago
Matthew Wild a4d4661846 util.async: Ensure runner is left in correct state after out-of-main-loop error (+tests) 8 years ago
Matthew Wild 05c0a96112 util.async: Add test to ensure waiters throw an error outside async contexts 8 years ago
Matthew Wild 364f1605a8 util.async: Add tests to specifically cover error handling 8 years ago
Matthew Wild 0354f0902a util.async: Add tests 8 years ago