action | Action to be executed in the main thread later. |
delay | Minimum amount of time in seconds for which the main thread will wait before executing the enqueued action. |
This function can be used in a thread to enqueue an action that will be executed later in the main thread.