Function tarantool_rust_module::fiber_new [] [src]

pub unsafe extern "C" fn fiber_new(
    name: *const c_char,
    f: FiberFunc
) -> *mut fiber

Create a new fiber.

Takes a fiber from fiber cache, if it's not empty. Can fail only if there is not enough memory for the fiber structure or fiber stack.

The created fiber automatically returns itself to the fiber cache when its "main" function completes.

\param name string with fiber name \param FiberFunc func for run inside fiber

\sa fiber_start