resourceManager static method
Gives the host a resource manager, for example
ResourceManagerImpl(limiter: ...) or NullResourceManager(). The
host closes it when the host closes. Cannot be used with
resourceLimiter.
Implementation
static Option resourceManager(ResourceManager manager) {
return (config) => config.withResourceManager(manager);
}