Skip to content

Add mutation from ensure to tap #1232

Open
@mbj

Description

Example:

resource = aquire

begin
  use(resource)
ensure
  release(resource)
end

to:

use(resource).tap do
  release(resource)
end

This mutation forces to specify the resource release actually is executed in the presence of exceptions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions