Commit Graph

45 Commits (c19a8ef9ff319d31991e1dd8a23bdd9efb9389bb)

Author SHA1 Message Date
Matthew Wild 9b5c6c4d9d Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall 7 years ago
Kim Alvefur b589422130 util.async: Remove sleep function 8 years ago
Kim Alvefur 701f263ee7 util.{async,timer}: Move sleep() to reduce dependencies of util.timer 8 years ago
Matthew Wild 6e323b0ff2 MUC: Add config option to allow members to invite other members to the room (previously only owners/admins could do this) 8 years ago
Matthew Wild 269d98209c util.async: Copy hooks from main thread into coroutines 8 years ago
Kim Alvefur 8b1ed4faae util.async: Move runner id into log tag 8 years ago
Matthew Wild 289bb74872 util.async: Add helper methods for setting watchers 8 years ago
Kim Alvefur 4872683a42 util.timer: Move sleep() here from util.async 8 years ago
Kim Alvefur fdcc458ff8 util.async: Remove last trace of async.once [luacheck] 8 years ago
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 d99a87a40c util.async: Allow nil as a guard key 8 years ago
Matthew Wild 6a62730359 util.async: Add sleep() method 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 6191ad50b7 util.async: Bump log warnings to error level 8 years ago
Matthew Wild 8713a96ea6 util.async: Split runner_continue into smaller functions for easier testing and safety 8 years ago
Matthew Wild a87f39878a util.async: Remove redundant line committed by mistake (Zash, luacheck) 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 18c5a6ca6b util.async: Convert asserts to a return false (same as other unexpected behaviour) 8 years ago
Matthew Wild fe5a2515ac util.async: Add comment 8 years ago
Matthew Wild 04e125d52f util.async: You can never have too many asserts! 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 63c7d4d8a3 util.async: Log the non-error state as well when there is an error being processed 8 years ago
Matthew Wild 09aa4a9698 util.async: Bugfix, don't continue main loop while there is a pending error 8 years ago
Matthew Wild fd381c6b8d util.async: Fix order of statements so queue count makes more sense 8 years ago
Matthew Wild 6b147cfc39 util.async: Log warning when unexpected state is reached 8 years ago
Matthew Wild 46a9b42142 util.async: Add per-runner ids and add runner:log() method 8 years ago
Kim Alvefur 170cc278f9 util.async: Fix thread check to work correctly in Lua 5.2 8 years ago
Kim Alvefur a031c5073b util.async: Factor out thread check into a function 8 years ago
Waqas Hussain a408d9d946 util.async: Fix documentation URL 8 years ago
Kim Alvefur bdaf30fb87 util.async: Add annotation to ignore warning [luacheck] 9 years ago
Kim Alvefur cf352af83d util.async: Rename variable to avoid name clash [luacheck] 9 years ago
Matthew Wild ed04424e61 util.async: Add some more comments for clarity 10 years ago
Emmanuel Gil Peyrot bbf1653e04 Update every link to the documentation to use HTTPS 10 years ago
Kim Alvefur 1d26337ac6 util.async: Remove to prevent blocking a stable release 10 years ago
Matthew Wild 4b544bde27 util.async: Make guarder() local 13 years ago
Matthew Wild 754483ceb6 util.async: Add guarder method, to create guards to ensure only a single runner can pass through a section of code at a time 13 years ago
Matthew Wild 0881416b62 util.async: Fix logic bug that prevented error watcher being called for runners 13 years ago
Kim Alvefur dc95267cdb util.async: waiter: Throw error if done() called too many times 13 years ago
Matthew Wild 86a6492eb0 util.async: waiter: Remove restriction about wait() being called before done() 13 years ago
Matthew Wild 7c85c2cd9c util.async: runner: Fix check for new state to recognise transition to 'waiting' 13 years ago
Matthew Wild df81676c77 util.async: Make functions local 13 years ago
Matthew Wild 672089f4e3 util.async: New library to provide support around coroutine-based non-blocking functions 13 years ago