Module provider
Registers an implementation of a feature.
Functions
Provider:unregister (feature, name) | Unregisters an implementation of a feature. |
Provider:size (feature) | Counts providers for a given feature |
Provider:getProvidersTable (feature) | Get providers for a given feature |
Functions
- Provider:unregister (feature, name)
-
Unregisters an implementation of a feature.
Parameters:
- feature string feature identifier
- name string provider identifier
Returns:
-
bool
unregistered
- Provider:size (feature)
-
Counts providers for a given feature
Parameters:
- feature string feature identifier
Returns:
-
int
number
- Provider:getProvidersTable (feature)
-
Get providers for a given feature
Parameters:
- feature string feature identifier
Returns:
-
table
provider/implementation k/v pairs.