Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-842] Add rethrows to the ObjectiveC.autoreleasepool function #43454

Closed
benrimmington opened this issue Feb 28, 2016 · 6 comments
Closed

[SR-842] Add rethrows to the ObjectiveC.autoreleasepool function #43454

benrimmington opened this issue Feb 28, 2016 · 6 comments
Assignees
Labels
good first issue Good for newcomers improvement standard library Area: Standard library umbrella swift evolution implemented Flag → feature: A feature that was approved through the Swift evolution process and implemented

Comments

@benrimmington
Copy link
Collaborator

Previous ID SR-842
Radar None
Original Reporter @benrimmington
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Improvement, StarterBug
Assignee @tjw
Priority Medium

md5: c5854d2715589b4cb47479682a705263

is duplicated by:

  • SR-1394 Implement SE-0061 - Add Generic Result and Error Handling to autoreleasepool()

Issue 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

@benrimmington
Copy link
Collaborator Author

@benrimmington
Copy link
Collaborator Author

@benrimmington
Copy link
Collaborator Author

@benrimmington
Copy link
Collaborator Author

@tjw
Copy link
Contributor

tjw commented May 3, 2016

See also SR-1394 which marked the SE-0061 as approved.

@tkremenek
Copy link
Member

Resolved by:

#2384

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the swift evolution implemented Flag → feature: A feature that was approved through the Swift evolution process and implemented label Nov 12, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers improvement standard library Area: Standard library umbrella swift evolution implemented Flag → feature: A feature that was approved through the Swift evolution process and implemented
Projects
None yet
Development

No branches or pull requests

4 participants