[][src]Function objc::rc::autoreleasepool

pub fn autoreleasepool<T, F: FnOnce() -> T>(f: F) -> T

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.