Skip to main content

destroy_socket_if

Function destroy_socket_if 

Source
pub fn destroy_socket_if(socket: I, condition: bool)
Expand description

Remove callback from the associated kdb+ socket and call kclose if the given condition is satisfied. Return null if the socket is invalid or not the one which had been registered by sd1.

ยงNote

A function which calls this function must be executed at the exit of the process.