Skip to content

Expose fiber id for Rust

At the moment we have to use Lua to get fiber id (and it is very painful according to the flame graph)

pub fn fiber_id() -> u64 {
    let lua = tarantool::lua_state();
    lua.eval("return require('fiber').id()").unwrap()
}