add

suspend fun add(dataSource: DataSource): DataSource(source)

Adds a data source to the collection.

Return

A Promise that resolves once the data source has been added to the collection.

Parameters

dataSource

A data source or a promise to a data source to add to the collection. When passing a promise, the data source will not actually be added to the collection until the promise resolves successfully.

See also


suspend fun add(dataSource: Promise<DataSource>): DataSource(source)