Skip to content
This repository was archived by the owner on Oct 9, 2018. It is now read-only.

Commit 16fa41b

Browse files
committed
Merge pull request #39 from sfackler/master
Remove outdated syncronization error handling exception
2 parents 54faed3 + 7959609 commit 16fa41b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

errors/signaling.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,3 @@ An API should not provide both `Result`-producing and `panic`king versions of an
123123
operation. It should provide just the `Result` version, allowing clients to use
124124
`try!` or `unwrap` instead as needed. This is part of the general pattern of
125125
cutting down on redundant variants by instead using method chaining.
126-
127-
There is one exception to this rule, however: synchronization between
128-
threads. Operations on mutexes, channels, and other means of
129-
synchronization usually propagate panics by default (e.g. by poisoning
130-
the mutex) but *also* provide a means of halting the propagation by
131-
"catching" the panic. Since there is no way to check for panic
132-
propagation in advance (due to the race conditions inherent with these
133-
synchronization constructs), both panicking and non-panicking versions
134-
are provided.

0 commit comments

Comments
 (0)