Skip to content

Commit

Permalink
Document unpredictable behaviour of connect() (#379)
Browse files Browse the repository at this point in the history
Ref: #378
  • Loading branch information
glyn authored Jan 24, 2025
1 parent 64fdbfb commit 907d1ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ where
{
/// Create an [IpcSender] connected to a previously defined [IpcOneShotServer].
///
/// This function should not be called more than once per [IpcOneShotServer],
/// otherwise the behaviour is unpredictable.
/// See [issue 378](https://github.com/servo/ipc-channel/issues/378) for details.
///
/// [IpcSender]: struct.IpcSender.html
/// [IpcOneShotServer]: struct.IpcOneShotServer.html
pub fn connect(name: String) -> Result<IpcSender<T>, io::Error> {
Expand Down

0 comments on commit 907d1ae

Please sign in to comment.