mutant icon indicating copy to clipboard operation
mutant copied to clipboard

Add mutation from `ensure` to `tap`

Open mbj opened this issue 4 years ago • 0 comments

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.

mbj avatar Apr 30 '21 02:04 mbj