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

Doing println() from future() #266

Open
Sdaas opened this issue Jan 13, 2017 · 0 comments
Open

Doing println() from future() #266

Sdaas opened this issue Jan 13, 2017 · 0 comments

Comments

@Sdaas
Copy link

Sdaas commented Jan 13, 2017

I am a noob to Clojure, and I am loving gorilla-repl ! I am trying to understand the expected behavior on calling println() from inside a call to future(). Something like ...

(future (Thread/sleep 4000)
         (println "hello world"))

Should I expect "hello world" to be printed on the screen 4 seconds later ? Right now, I can see that the future gets realized, but I never see the output.

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

No branches or pull requests

1 participant