ResourceList
Tinput values
Uoutput values
Constructor Function
function ResourceList(items, options, description?): ResourceListBlueprint;itemsIterable<T>An iterable of input values.
options.key(item: T) => anyA function that returns a unique key for each item.
options.create(item: T) => ResourceBlueprint<U>A function that creates a resource for each item.
description?stringA description of the resource.
optionalreturnsResourceListBlueprint
Properties
current
readonly current: U[];A list of the current values of the resources in the list.
ResourceListBlueprint
bolt Methods
create
create(options): ResourceList;options.ownerobjectThe owner of the ResourceList. The lifetime of each member of the list will be linked to this owner. This means that members will be cleaned up when this owner is cleaned up, at the latest.
returnsResourceList