Commit Graph

49 Commits (020cd46f0341663d71ebdbd02f67032ddcb4a677)

Author SHA1 Message Date
Matthew Wild 020454b7a3 util.async: Don't attempt to close thread if not created yet 6 years ago
Matthew Wild 3c53df7847 util.async: Call coroutine.close() on dead threads (Lua 5.4) 6 years ago
Matthew Wild 9691969c44 util.async: Rename wait -> wait_for (w/compat) 6 years ago
Kim Alvefur 6b4ed1a30a util.async: Add function for waiting on promises and unpacking the results 6 years ago
Matthew Wild f5f6460b2e Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall 7 years ago
Kim Alvefur 18157ec5f8 util.async: Remove sleep function 7 years ago
Kim Alvefur 9c48fc4726 util.{async,timer}: Move sleep() to reduce dependencies of util.timer 8 years ago
Matthew Wild 49677384f6 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 bd47ba30c2 util.async: Copy hooks from main thread into coroutines 8 years ago
Kim Alvefur e3979fdddd util.async: Move runner id into log tag 8 years ago
Matthew Wild eb96155cf3 util.async: Add helper methods for setting watchers 8 years ago
Kim Alvefur 2fa049d2e1 util.timer: Move sleep() here from util.async 8 years ago
Kim Alvefur 57f5ea520f util.async: Remove last trace of async.once [luacheck] 8 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 e3fd2037fc util.async: Allow nil as a guard key 8 years ago
Matthew Wild f90a032fb6 util.async: Add sleep() method 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 dd23605ae8 util.async: Bump log warnings to error level 8 years ago
Matthew Wild 64594ce6f3 util.async: Split runner_continue into smaller functions for easier testing and safety 8 years ago
Matthew Wild 1490ff5472 util.async: Remove redundant line committed by mistake (Zash, luacheck) 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 8f7b5afe19 util.async: Convert asserts to a return false (same as other unexpected behaviour) 8 years ago
Matthew Wild 3059744ca4 util.async: Add comment 8 years ago
Matthew Wild 357476b690 util.async: You can never have too many asserts! 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 b62058e24a util.async: Log the non-error state as well when there is an error being processed 8 years ago
Matthew Wild 99d071b9f8 util.async: Bugfix, don't continue main loop while there is a pending error 8 years ago
Matthew Wild 359f425e71 util.async: Fix order of statements so queue count makes more sense 8 years ago
Matthew Wild a19c168d25 util.async: Log warning when unexpected state is reached 8 years ago
Matthew Wild f22ee7eef6 util.async: Add per-runner ids and add runner:log() method 8 years ago
Kim Alvefur fc8fcb69ef util.async: Fix thread check to work correctly in Lua 5.2 8 years ago
Kim Alvefur ffc6fcf5d3 util.async: Factor out thread check into a function 8 years ago
Waqas Hussain e31d31312f util.async: Fix documentation URL 8 years ago
Kim Alvefur c9778ba770 util.async: Add annotation to ignore warning [luacheck] 9 years ago
Kim Alvefur 1ab7b00c72 util.async: Rename variable to avoid name clash [luacheck] 9 years ago
Matthew Wild e34fadb697 util.async: Add some more comments for clarity 10 years ago
Emmanuel Gil Peyrot c6048a7cb4 Update every link to the documentation to use HTTPS 10 years ago
Kim Alvefur fd7f0f2193 util.async: Remove to prevent blocking a stable release 10 years ago
Matthew Wild 7f367c1d6e util.async: Make guarder() local 13 years ago
Matthew Wild 14f85f2f4e 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 7a082cb393 util.async: Fix logic bug that prevented error watcher being called for runners 13 years ago
Kim Alvefur 0e702abb1f util.async: waiter: Throw error if done() called too many times 13 years ago
Matthew Wild 516179867e util.async: waiter: Remove restriction about wait() being called before done() 13 years ago
Matthew Wild d135b8fef9 util.async: runner: Fix check for new state to recognise transition to 'waiting' 13 years ago
Matthew Wild 056eec9953 util.async: Make functions local 13 years ago
Matthew Wild 95c8ddb01c util.async: New library to provide support around coroutine-based non-blocking functions 13 years ago