-
Notifications
You must be signed in to change notification settings - Fork 521
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
Print warning when we detect a non-main-thread main #3774
Conversation
* isn't the main process thread. This condition can happen when we are running inside of an | ||
* `sbt run` with `fork := false` | ||
*/ | ||
private def onNonMainThreadDetected(): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can probably become protected
in the next API break, though honestly I'm skeptical that it's valuable to expose at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I'd rather not expose an API like this in IOApp
. :-) Better to keep it private.
This should help people not run facefirst into sbt/sbt#6242 It's a frequent question for new users
94a7b60
to
d42975a
Compare
Co-authored-by: Arman Bilge <armanbilge@gmail.com>
* isn't the main process thread. This condition can happen when we are running inside of an | ||
* `sbt run` with `fork := false` | ||
*/ | ||
private def onNonMainThreadDetected(): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I'd rather not expose an API like this in IOApp
. :-) Better to keep it private.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong button on previous review sorry
Co-authored-by: Daniel Spiewak <djspiewak@gmail.com>
This should help people not run facefirst into sbt/sbt#6242
It's a frequent question for new users