A class that can fetch or compute a resource that may be needed by multiple
tasks. The first time a resource is requested, it is fetched and then given
to everyone requesting it.
Param: fetch
function that fetches/computes
a resource; it will be run in a separate task.
A class that can fetch or compute a resource that may be needed by multiple tasks. The first time a resource is requested, it is fetched and then given to everyone requesting it.
Param: fetch
function that fetches/computes a resource; it will be run in a separate task.