Skip to content

Yield and resume runtime exection from golang #693

@Hucaru

Description

@Hucaru

Is it possible to yield execution and then resume at a later time from outside the runtime? From what I can tell if you interrupt the runtime, clear the interrupt and invoke RunProgram the program counter is reset to zero.

Can an implementation be implemented that resumes execution of the interrupted runtime from the current program counter?

The use case for this is NPC scripting for a game server. After each message sent to the client via the script a yield from the runtime is desired with a resumption of the execution once a user client sends a response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions