Skip to content

MaxSpawn

[Source]

A validated maximum number of concurrent connections. The value must be at least 1.

Construct with MakeMaxSpawn(count), which returns (MaxSpawn | ValidationFailure). Pass to TCPListener via the limit parameter, or pass None to disable the connection limit.

type MaxSpawn is
  Constrained[U32 val, MaxSpawnValidator val] val

Type Alias For