Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
30
node_modules/effect/dist/esm/internal/singleShotGen.js
generated
vendored
Normal file
30
node_modules/effect/dist/esm/internal/singleShotGen.js
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/** @internal */
|
||||
export class SingleShotGen {
|
||||
self;
|
||||
called = false;
|
||||
constructor(self) {
|
||||
this.self = self;
|
||||
}
|
||||
next(a) {
|
||||
return this.called ? {
|
||||
value: a,
|
||||
done: true
|
||||
} : (this.called = true, {
|
||||
value: this.self,
|
||||
done: false
|
||||
});
|
||||
}
|
||||
return(a) {
|
||||
return {
|
||||
value: a,
|
||||
done: true
|
||||
};
|
||||
}
|
||||
throw(e) {
|
||||
throw e;
|
||||
}
|
||||
[Symbol.iterator]() {
|
||||
return new SingleShotGen(this.self);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=singleShotGen.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue