[][src]Trait wlambda::threads::ThreadGlobalEnvCreator

pub trait ThreadGlobalEnvCreator: Send {
    pub fn new_env(&mut self) -> GlobalEnvRef { ... }
}

This trait handles creation of the GlobalEnv for new threads. You can reuse the DefaultThreadCreator by just providing it a custom ThreadGlobalEnvCreator implementation. This suffices in most cases where you want to embed WLambda and provide a custom API to new threads.

Provided methods

pub fn new_env(&mut self) -> GlobalEnvRef[src]

Loading content...

Implementors

impl ThreadGlobalEnvCreator for FunctionGlobalEnvCreator[src]

Loading content...