Skip to content

Instantly share code, notes, and snippets.

@GarconsdeCrystal
Forked from audreyt/delay.ls
Created October 23, 2021 14:10
Show Gist options
  • Select an option

  • Save GarconsdeCrystal/786483d4a8249c0da37e660d1922a3ec to your computer and use it in GitHub Desktop.

Select an option

Save GarconsdeCrystal/786483d4a8249c0da37e660d1922a3ec to your computer and use it in GitHub Desktop.
Q = require \q
p = [1 2 3]
q = [4 5 6]
(.reduce Q.when, Q!) <| for let i in p => ->
<- Q.delay 500ms .then
console.log i
(.reduce Q.when, Q!) <| for let j in q => ->
<- Q.delay 500ms .then
console.log i, j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment