Skip to content

Commit 626622b

Browse files
authored
Update doc/contributing/erm-guidelines.md
1 parent 67ff64d commit 626622b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/contributing/erm-guidelines.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ So with this is mind, it is necessary to outline some guidelines for disposers:
8585
the object should be disposed as if an exception had occurred. For instance,
8686
if the object API exposes both a `close()` method and an `abort()` method,
8787
the disposal method should call `abort()` if the object is not already
88-
closed.
88+
closed. If there is no difference in disposing in success or exception contexts,
89+
then separate disposal methods are unnecessary.
8990
1. Disposers may throw their own exceptions but this is not recommended.
9091
If a disposer throws an exception while there is another pending
9192
exception, then both exceptions will be wrapped in a `SupressedError`

0 commit comments

Comments
 (0)