Make potentially blocking functions as safe