This function sets the threads used by {data.table} to 1 in the parent function and then restores the initial {data.table} threads when the function exits. This is primarily used as an internal function inside of other functions and will generally not be used on its own.
set_dt_single_thread()
Returns
an environment in the parent frame named "dt_settings"