Function tarantool::fiber::defer_proc
source · pub fn defer_proc<'f, F>(f: F) -> JoinHandle<'f, ()>where
F: FnOnce() + 'f,
👎Deprecated: Use
fiber::defer
insteadExpand description
Creates a new fiber and schedules it for execution, returning a
JoinHandle
<()>
for it.
NOTE: In the current implementation the fiber is constructed using the lua api, so it’s efficiency is far from perfect.
The new fiber can be joined by calling JoinHandle::join
method on
it’s join handle.
This is an optimized version defer
<F, ()>
.