pcdsdevices.utils.schedule_task

pcdsdevices.utils.schedule_task(func, args=None, kwargs=None, delay=None)

Use ophyd’s dispatcher to schedule a task for later.

This is basically the function I was hoping to find in ophyd. Schedules a task for the utility thread if we’re in some arbitrary thread, schedules a task for the same thread if we’re in one of ophyd’s callback queues already.