pub unsafe fn set_signals_function(function: fn() -> Result<(), PolarsError>)
Expand description
Set the function that will be called check_signals.
This can be set on startup to enable stopping a query when user input like ctrl-c
is called.
ยงSafety
The caller must ensure there is no other thread accessing this function
or calling check_signals
.