fn with_attached<F, R>(&self, f: F) -> JniResult<R>
    where
        F: FnOnce(&JNIEnv) -> JniResult<R>,
    {
        self.with_attached_capacity(Self::LOCAL_FRAME_CAPACITY, f)
    }
/// Executes a provided closure, making sure that the current thread
/// is attached to the JVM. Additionally ensures that local object references freed after call.
/// Allocates a local frame with the default capacity.
Executes a provided closure, making sure that the current thread
is attached to the JVM. Additionally ensures that local object references freed after call.
Allocates a local frame with the default capacity.
Executes a provided closure making sure that the current thread is attached to the JVM . Additionally ensures that local object references freed after call . Allocates a local frame with the default capacity .
fn with_attached<F, R>(&self, f: F) -> JniResult<R>
    where
        F: FnOnce(&JNIEnv) -> JniResult<R>,
    {
        self.with_attached_capacity(Self::LOCAL_FRAME_CAPACITY, f)
    }
fn with_attached < F , R > ( & self , f : F ) -> JniResult < R > where F : FnOnce ( & JNIEnv ) -> JniResult < R > , { self . with_attached_capacity ( Self :: LOCAL_FRAME_CAPACITY , f ) }
Executes a provided closure, making sure that the current thread
is attached to the JVM.
Executes a provided closure making sure that the current thread is attached to the JVM .
&self
f
F