Module jlrs::convert::as_unrooted [−][src]
Expand description
Convert a rooted value or result to its unrooted counterpart.
When the async runtime is used, it can be useful to use AsyncGcFrame::async_value_scope
or
AsyncGcFrame::async_result_scope
in order to ensure temporary values can be freed by the
garbage collector as fast as possible. Because the result of an async Julia function call is
rooted, it must be unrooted before it is returned from the closure.
Traits
Converts a Value
or JuliaResult
to their unrooted counterparts.