Execute a callback in a background thread which uses a resource
func |
the callback to execute |
priority |
the priority with which to create the resource |
cancellable |
optional cancellable for aborting the opearation |
the return value from the callback |