pub unsafe fn reference(&self, env: Env) {
        assert_eq!(
            napi::ref_threadsafe_function(env, self.tsfn.0,),
            napi::Status::Ok,
        );
    }
/// References a threadsafe function to prevent exiting the event loop until it has been dropped. (Default)
/// Safety: `Env` must be valid for the current thread
References a threadsafe function to prevent exiting the event loop until it has been dropped. (Default)
Safety: `Env` must be valid for the current thread
References a threadsafe function to prevent exiting the event loop until it has been dropped . ( Default ) Safety : ` Env ` must be valid for the current thread
pub unsafe fn reference(&self, env: Env) {
        assert_eq!(
            napi::ref_threadsafe_function(env, self.tsfn.0,),
            napi::Status::Ok,
        );
    }
pub unsafe fn reference ( & self , env : Env ) { assert_eq ! ( napi ref_threadsafe_function ( env self tsfn 0 ) napi Status Ok ) ; }
References a threadsafe function to prevent exiting the event loop until it has been dropped.
References a threadsafe function to prevent exiting the event loop until it has been dropped .
&self
env
Env