evo-lua / evo-runtime

All-in one Lua runtime based on LuaJIT and libuv
https://evo-lua.github.io
Mozilla Public License 2.0
10 stars 1 forks source link

Add an AsyncFileReader module to the FileSystem API #533

Closed Duckwhale closed 4 months ago

Duckwhale commented 4 months ago

This module makes heavy use of the event system to flatten the hierarchy of nested callbacks and make things easier to test/observe. Not sure how much I like the design, but it's arguably less convoluted than playing ping-pong with coroutines and should be relatively easy to use, as well. Additional features, like gathering multiple files, can be added on top of this later.