poga / actix-lua

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

Use `LuaActor` with `SyncArbiter` #15

Open poga opened 5 years ago

poga commented 5 years ago

SyncArbiter allows us to put blocking statements to separated threads.

LuaActor is implemented with AsyncContext. In order to start an actor with SyncArbiter, it has to with SyncContext.

However, SyncContext does not provides rich APIs from AsyncContext, therefore it's not really compatible between these two implementation.

Maybe we can provide an alternative implementation such as SyncLuaActor?