Erster Docker-Stand
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user