OxL Справочник OxL
РусскийEnglish

method net.dropConnections

Breaks every client connection of this process (the sockets are shut down). A call in flight fails with Unavailable; a @resumable stream reconnects with its last offset (§10.3); the next call opens a new connection.

Example:

oxl✓ проверяется в CI
use std.test { net }

test "dropped connections reconnect" {
  net.dropConnections()
}
pub(api) static fn dropConnections() net

С версии. 1.0.0-beta

Эффекты

net

Определено в: std/test/test.oxl:81

См. также