Skip to content

Instantly share code, notes, and snippets.

@druska
Created February 28, 2018 22:48
Show Gist options
  • Save druska/94fcf4bbdb8588391040b20915ed9bab to your computer and use it in GitHub Desktop.
Save druska/94fcf4bbdb8588391040b20915ed9bab to your computer and use it in GitHub Desktop.
@nodeguy/channel Bluebird issue reproduction
const Bluebird = require('bluebird')
const Channel = require('@nodeguy/channel')
global.Promise = Bluebird
async function main() {
const c = Channel()
const asyncF = async () => {}
c.push(asyncF)
await c.shift()
}
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment