Skip to content

feat(fiber): implement deferred fibers without yields

Alexey Protsenko requested to merge no-yield-deferred-fibers into master

Closes #14 (closed)

The deferred fibers using lua runtime can now be created using fiber::defer(...) and fiber::defer_proc(...).

Limitations:

  • currently only joinable fibers are supported
  • setting name and stack size is impossible
  • implementation can be optimized some

Current implementations uses the lua runtime to achieve the goal of no context switches. This is necessary due to the limitation of tarantool ffi api. We are planning to fix this in the future by adding a single function to tarantool api.

Edited by Alexey Protsenko

Merge request reports