Function kdb_c_api::destroy_socket_if[][src]

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.