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

Handle thrown exception and deliver lacinia result appropriately #1

Merged
merged 6 commits into from
Apr 22, 2022

Conversation

ljb7977
Copy link

@ljb7977 ljb7977 commented Apr 21, 2022

No description provided.

src/superlifter/api.cljc Outdated Show resolved Hide resolved
result))))
(doall (map prom/resolve! promises result))))
;(run! (fn [[p result]] (prom/resolve! p result))
; (zipmap promises result))))
Copy link
Author

@ljb7977 ljb7977 Apr 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사실 이건 원 저자가 만든 것처럼 run!을 써도 되는데, 그냥 doall~map이 맘에 더 들어서 바꿨습니다 ㅋㅋㅋ
(zipmap을 굳이 쓰는 게 별로기도 했구요)

run!이든 doall이든 둘 다 잘 동작하긴 합니다.

src/superlifter/api.cljc Outdated Show resolved Hide resolved
@ljb7977 ljb7977 merged commit e0df5b3 into master Apr 22, 2022
@ljb7977 ljb7977 changed the title Superlifter hang fix test Handle thrown exception and deliver lacinia result appropriately Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants