MCPcopy Create free account
hub / github.com/SocketCluster/socketcluster / next

Method next

app/public/socketcluster-client.js:6269–6274  ·  view source on GitHub ↗
(timeout)

Source from the content-addressed store, hash-verified

6267},{"is-plain-object":16,"kind-of":18,"shallow-clone":24}],14:[function(require,module,exports){
6268class ConsumableStream {
6269 async next(timeout) {
6270 let asyncIterator = this.createConsumer(timeout);
6271 let result = await asyncIterator.next();
6272 asyncIterator.return();
6273 return result;
6274 }
6275
6276 async once(timeout) {
6277 let result = await this.next(timeout);

Callers 1

onceMethod · 0.95

Calls 3

createConsumerMethod · 0.95
returnMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected