GHC-Events | Comprehensive list of company events | Awesome List library
kandi X-RAY | GHC-Events Summary
kandi X-RAY | GHC-Events Summary
For more, read Optimizing the Grace Hopper Celebration Experience, Tips from PowertoFly, Resume tips and Things to do before GHC.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of GHC-Events
GHC-Events Key Features
GHC-Events Examples and Code Snippets
Community Discussions
Trending Discussions on GHC-Events
QUESTION
Why this code
...ANSWER
Answered 2017-Nov-04 at 08:59http://hackage.haskell.org/package/base-4.10.0.0/docs/Control-Concurrent.html#g:12:
In a standalone GHC program, only the main thread is required to terminate in order for the process to terminate. Thus all other forked threads will simply terminate at the same time as the main thread (the terminology for this kind of behaviour is "daemonic threads").
If you want the program to wait for child threads to finish before exiting, you need to program this yourself.
http://chimera.labs.oreilly.com/books/1230000000929/ch07.html#sec_reminders:
[...] This tells us something important about how threads work in Haskell: the program terminates when
main
returns, even if there are other threads still running. The other threads simply stop running and cease to exist aftermain
returns.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GHC-Events
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page