We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dad063a commit e0baa30Copy full SHA for e0baa30
src/generators/queue.js
@@ -6,7 +6,9 @@ export default function(initialize) {
6
const dispose = initialize(push);
7
8
if (dispose != null && typeof dispose !== "function") {
9
- throw new Error("invalid dispose");
+ throw new Error(typeof dispose.then === "function"
10
+ ? "async initializers are not supported"
11
+ : "initializer returned something, but not a dispose function");
12
}
13
14
function push(x) {
0 commit comments