Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normal promise affect quoted promises in let #154

Closed
jcubic opened this issue Apr 2, 2021 · 0 comments
Closed

Normal promise affect quoted promises in let #154

jcubic opened this issue Apr 2, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jcubic
Copy link
Collaborator

jcubic commented Apr 2, 2021

Description

normal promise affect quoted promises in let. (because it use Promise.all that handle all promise like objects)

Steps to reproduce

(define (timer delay value)
  (new Promise (lambda (resolve) (setTimeout (curry resolve value) delay))))

(let ((x (timer 100 "hello")) (y '>(timer 100 "world"))) (list x y))
;; ==> ("hello" "world")
@jcubic jcubic added the bug Something isn't working label Apr 2, 2021
@jcubic jcubic closed this as completed Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant