summaryrefslogtreecommitdiff
path: root/tests/async.rs
AgeCommit message (Collapse)Author
2024-01-06Run tests for wasm32-unknown-emscriptenAlex Orlenko
2023-08-03Optimize async functionality:Alex Orlenko
Rewrite using the new `push_into_stack()`/`from_stack()` methods. Also store thread state (pointer) in `Thread` struct to avoid getting it every time. Async userdata methods still need to have arguments stored in ref thread as stack is empty on every poll().
2023-07-10Add `Error::runtime()` helperAlex Orlenko
2023-07-10Drop futures-timer dev-dependencyAlex Orlenko
2023-07-09Take &str as function name in `TableExt` and `AnyUserDataExt` traitsAlex Orlenko
2023-06-15Update `UserDataMethods::add_async_method()` functions to take `&T` as ↵Alex Orlenko
second argument instead of cloning `T`. New functions: `UserDataMethods::add_async_method_mut()`, `UserDataMethods::add_async_meta_method_mut()`.
2023-06-04Don't keep poll function in environment globals when polling async functions.Alex Orlenko
This is redundant after deprecating scoped async. Closes #281
2023-04-26Various improvements for owned types, including:Alex Orlenko
- tests - shortcuts for `OwnedFunction` and `OwnedAnyUserData`
2023-04-23Check for reference leak detection only in mlua integratin tests.Alex Orlenko
This is not necessary an error and should not be enforced by default. Fixes #268.
2023-04-14Remove unstable feature flag from Function::wrap/wrap_mut/wrap_asyncAlex Orlenko
2023-02-18Add `AnyUserDataExt` trait with auxiliary functions for `AnyUserData`Alex Orlenko
2023-02-12Drop `Lua::async_scope` as it's unsoundAlex Orlenko
2022-12-30Rename wrapped_failure/thread cache to poolAlex Orlenko
2022-12-22Add `Function::wrap`/`Function::wrap_mut`/`Function::wrap_async` to wrap ↵Alex Orlenko
functions into a type that implements `IntoLua` trait. This is useful to avoid calling `lua.create_function*` every time when `Function` handle is needed.
2022-12-19Refactor `AsChunk` traitAlex Orlenko
2022-08-01Fix Lua assertion when inspecting another thread stack.Alex Orlenko
The thread can be dead and it's not safe to call __tostring metamethod (if present) on error object. Fixes #195
2022-07-31Close to-be-closed variables for Lua 5.4 when using call_async functionsAlex Orlenko
Fixes #192
2022-05-15Refactor `Function::bind` implementation.Alex Orlenko
Make it possible to bind async function arguments. Fixes #161
2022-03-21Fix __index and __newindex wrappers for LuauAlex Orlenko
2022-03-20Initial Luau supportAlex Orlenko
2022-03-20Refactor ffi moduleAlex Orlenko
Initial Luau support work
2022-03-20Fix async userdata __index, __newindex metamethodsTarik02
2021-11-14Add thread (coroutine) cache to reset and later reuse to execute async ↵Alex Orlenko
functions. It works on Lua 5.4 and LuaJIT (vendored) with `lua_resetthread` function.
2021-11-04Add async meta methods for all Lua except 51Alex Orlenko
2021-04-16Drop 'feature(link_args)' (removed from nightly). Don't run tests for LuaJIT ↵Alex Orlenko
2.0.5
2021-03-03Fix bug in returning nil-prefixed multi values from async functionAlex Orlenko
2021-02-21Fix scoped async destruction of partially polled futuresAlex Orlenko
2020-06-06Add LuaJIT 2.0.5 stable supportAlex Orlenko
2020-05-11Scope support (including async)Alex Orlenko
2020-05-11Add Send capability to LuaAlex Orlenko
2020-04-20Update tests (async and table)Alex Orlenko
2020-04-18Add family of `call_async` functionAlex Orlenko
Update documentation Move async tests to a separate file