solar_interface

Function enter

Source
pub fn enter<R>(f: impl FnOnce() -> R) -> R
Expand description

Creates new session globals on the current thread if they doesn’t exist already and then executes the given closure.

Prefer Session::enter to this function if possible to also set the source map.