Function tarantool::fiber::exists

source ·
pub fn exists(id: FiberId) -> bool
Expand description

Returns true if fiber with given id exists.

Returns false if such fiber has never existed or has already been recycled.

NOTE: if a fiber with given id is joinable and has finished executing, it will not be recycled until it’s joined. So this function will return true for such fibers until they are joined.