v6.0.0
https://github.com/sociomantic-tsunami/swarm/milestone/37?closed=1
Migration Instructions
Module swarm.neo.util.AcquiredResources
has been removed
swarm.neo.util.AcquiredResources
Please use ocean.util.container.pool.AcquiredResources
instead.
Module swarm.neo.util.ByteCountHistogram
has been removed
swarm.neo.util.ByteCountHistogram
Please use ocean.math.BinaryHistogram
instead.
swarm.neo.node.IRequestHandler
is replaced by swarm.neo.node.IRequest
swarm.neo.node.IRequestHandler
, swarm.neo.node.IRequest
swarm.neo.node.IRequestHandler
module has been renamed to
swarm.neo.node.IRequest
, and contains only the IRequest
interface now,
since the IRequestHandler
interface has been removed post deprecation.
UseNodeDg
delegate alias now returns RequestOnConn.NodeState
swarm.neo.client.RequestHandlers
, swarm.neo.client.RequestOnConn
Previously, the swarm.neo.client.RequestHandlers.UseNodeDg
delegate signature
had bool
as its return type, which indicated success or failure of connection
to a node, without specifying the failure reason.
This delegate signature now has RequestOnConn.NodeState
as its return type,
which is an enumerated state, indicating success, or failure, specifying if the
failure happened for the said node being absent or due to a connection failure.
EventDispatcher.receive
passes received data as const(void)[]
The delegate parameter of the EventDispatcher.receive()
method now takes
an array of const values, instead of a const array.
Module swarm.neo.util.TimeHistogram
has been removed
swarm.neo.util.TimeHistogram
Please use ocean.math.TimeHistogram
instead.
Module swarm.neo.util.AcquiredResources
has been removed
swarm.neo.util.VoidBufferAsArrayOf
Please use ocean.util.container.VoidBufferAsArrayOf
instead.
EventDispatcher.shutdownWithProtocolError
now throws instead of returning
swarm.neo.connection.RequestOnConnBase
The method EventDispatcher.shutdownWithProtocolError
used to return an
exception with the expectation that the caller will throw it. The behaviour has
now changed such that EventDispatcher.shutdownWithProtocolError
throws this
exception directly. This simplifies usage of the method.
Deprecations
handlePending method deprecated
swarm.client.helper.SuspendableThrottler
The handlePending() was used to initiate a state-change. These state
changes are used in requests using the SuspendableRequestCore which is
superseded by the BatchRequestCore.