12345678module juptune.event.loop.async;
void asyncMoveSetter(
ContextT
)(
ContextT a,
ContextT b
);
A setter that uses std.algorithm.moveto perform a move operation into the user context's shared memory location.
This is best to use for types that are non-copyable, e.g. TcpSocket.
This, being a move operation, will of course mean your source input will be reverted to .init without having its dtor called.
Please note that as with any move operation, be very careful if your context contains an internal pointer.