Spaces:
Sleeping
Sleeping
|
Download meteora/node_modules/async-generator-function/README.md from Trireme/hyper_dashboard: direct link, hf CLI and curl.
- Browser
- Download file 2.1 kB
-
https://huggingface.co/spaces/Trireme/hyper_dashboard/resolve/main/meteora/node_modules/async-generator-function/README.md
- Command line
-
hf download hf://spaces/Trireme/hyper_dashboard/meteora/node_modules/async-generator-function/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Trireme/hyper_dashboard/resolve/main/meteora/node_modules/async-generator-function/README.md
2.1 kB
A newer version of the Gradio SDK is available: 6.31.0
async-generator-function
A function that returns the normally hidden AsyncFunction constructor, when available.
Getting started
npm install --save async-generator-function
Usage/Examples
const assert = require('assert');
const AsyncGeneratorFunction = require('async-generator-function')();
const fn = new AsyncGeneratorFunction('return 1');
assert.equal(fn.toString(), 'async function* anonymous(\n) {\nreturn 1\n}');
const iterator = fn();
iterator.next().then(x => {
assert.deepEqual(x, { done: true, value: 1 });
});
Tests
Clone the repo, npm install, and run npm test
