Skip to content

Commit

Permalink
Document unpredictable behaviour of connect()
Browse files Browse the repository at this point in the history
  • Loading branch information
glyn committed Jan 22, 2025
1 parent 64fdbfb commit b79cc38
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 b79cc38

Please sign in to comment.