Used to provide R callbacks to Python libraries that may invoke the function on a Python background thread.