unplug

close given socket or channel


Parameters

unplug target :socket :channel

Returns

  • :nothing

Examples

copy
; connect to a local server on port 256 socket: connect.to:"localhost" 256 ; send a message to the server send socket "Hello Socket World" ; disconnect from the server unplug socket

copy
; close a channel, parked recvs wake with :null, sends fail Jobs: channel 'jobs unplug Jobs

Related