Skip to content

Instantly share code, notes, and snippets.

Martín Ciparelli mciparelli

Block or report user

Report or block mciparelli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View suspend-generators.js
var suspend = require('suspend');
suspend(function* (resume) {
while (true) {
try {
yield request('http://www.unexistanturl.com', resume);
} catch (err) {
debug(err);
}
}
View gist:6022840
run(function* (gen) {
while (true) {
try {
yield request('http://www.unexistanturl.com', gen());
} catch (err) {
debug(err);
}
}
})
You can’t perform that action at this time.