actix-lua icon indicating copy to clipboard operation
actix-lua copied to clipboard

Use `LuaActor` with `SyncArbiter`

Open poga opened this issue 5 years ago • 0 comments

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?

poga avatar Oct 09 '18 15:10 poga