poga / actix-lua

Safe Lua Scripting Environment for Actix
MIT License
121 stars 13 forks source link

add LuaMessage::ThreadYield message #10

Closed poga closed 6 years ago

poga commented 6 years ago

Previously, LuaActor returns LuaMessage::Nil when the script yielded. It's hard to distinguish between a completed script and a yielded script.

This PR adds a special message variant to indicate that the script is yielded.