import Foundation #if os(Linux) @discardableResult func autoreleasepool(_ work: () throws -> Result) rethrows -> Result { try work() } #endif