Uploaded image for project: 'Swift'
  1. Swift
  2. SR-842

Add `rethrows` to the `ObjectiveC.autoreleasepool` function

    XMLWordPrintable

    Details

      Description

      For example:

      public func autoreleasepool(@noescape body: () throws -> Void) rethrows {
        let pool = __pushAutoreleasePool()
        defer {
          __popAutoreleasePool(pool)
        }
        try body()
      }
      

      https://github.com/apple/swift/blob/master/stdlib/public/SDK/ObjectiveC/ObjectiveC.swift

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tjw Timothy Wood
              Reporter:
              benrimmington Ben Rimmington
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: