Schedule given function to be run in our ThreadPool The given priority influences execution-time of the task depending on the currently scheduled amount of tasks.
| func |
function to be executed |
| priority |
priority of the given function |