Skip to content

Commit 907d1ae

Browse files
authored
Document unpredictable behaviour of connect() (#379)
Ref: #378
1 parent 64fdbfb commit 907d1ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ipc.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ where
353353
{
354354
/// Create an [IpcSender] connected to a previously defined [IpcOneShotServer].
355355
///
356+
/// This function should not be called more than once per [IpcOneShotServer],
357+
/// otherwise the behaviour is unpredictable.
358+
/// See [issue 378](https://github.com/servo/ipc-channel/issues/378) for details.
359+
///
356360
/// [IpcSender]: struct.IpcSender.html
357361
/// [IpcOneShotServer]: struct.IpcOneShotServer.html
358362
pub fn connect(name: String) -> Result<IpcSender<T>, io::Error> {

0 commit comments

Comments
 (0)