Skip to content

Document poll_pending invariant #499

Open
@cheesycod

Description

@cheesycod

When making a task scheduler for luau using mlua, I ran into the issue where resuming a Thread which was currently calling a Rust async function could deadlock. This is due to the undocumented variant of the lightuserdata mlua::Lua::poll_pending() being returned which seems to mean that all cases where this is returned should be stored and periodically resumed until completion of the thread.

Could this API please be documented?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions