Function objc::rc::autoreleasepool

source ·
pub fn autoreleasepool<T, F: FnOnce() -> T>(f: F) -> T
Expand description

Execute f in the context of a new autorelease pool. The pool is drained after the execution of f completes.

This corresponds to @autoreleasepool blocks in Objective-C and Swift.