Function fruity__bbqsrc::objc::autoreleasepool [−][src]
pub fn autoreleasepool<F, T>(f: F) -> T where
F: FnOnce() -> T,
Expand description
Calls a function in the context of a new autorelease pool, like
@autoreleasepool
.
See documentation.
Panic Handling
If a panic occurs within the function, the autorelease pool is drained as the stack unwinds.
This is implemented with Drop
.