addResource

open fun addResource(resource: T)

Adds a resource to the pool. The model must not be running when adding a resource.

Parameters

resource

the resource to add