Asynchronously execute a callback 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 |