.. _post_waitable:

The :literal:`ThreadHint` parameter can be used to request, but not guarantee, that a task executes on a particular thread.
The value passed should be the integer index in range [0..ThreadCount) of the thread in that executor.
You can retrieve the current thread index using :literal_ref:`tmc::current_thread_index()<current_thread_index>`.

tmc::post_waitable()
----------------------------------------

Overloads for ``tmc::task``:

.. doxygenfunction:: tmc::post_waitable(E&& Executor, task<void>&& Task, size_t Priority, size_t ThreadHint)

.. doxygenfunction:: tmc::post_waitable(E&& Executor, task<Result>&& Task, size_t Priority, size_t ThreadHint)


Overloads for functors:

.. doxygenfunction:: tmc::post_waitable(E&& Executor, FuncVoid&& Func, size_t Priority, size_t ThreadHint)

.. doxygenfunction:: tmc::post_waitable(E&& Executor, FuncResult&& Func, size_t Priority, size_t ThreadHint)
