Fork me on GitHub
#clojure-uk
<
2019-07-03
>
yogidevbear07:07:04

Aloha everyone

practicalli-johnny10:07:10

Wow, this Carbon 3D printing technique looks amazing. Instead of layer by layer, it just pulls out objects in seconds... https://techcrunch.com/video/3d-manufacturer-carbon-helps-customers-scale-polymer-products/

dharrigan15:07:10

What's the approach for having a main method in an uberjar that exits immediately, since the function in the main method spawns off a thread?

dharrigan15:07:49

a tight loop, i.e? (while (= true true) spiny spin)?

djtango15:07:26

do you want it to run indefinitely or not exit immediately?

djtango15:07:42

Don't quite understand the question

seancorfield16:07:42

@dharrigan If I'm understanding your question correctly, I'd create a promise and then just wait on it (`deref`).

seancorfield16:07:09

(that can also allow for an orderly exit if the spawned function delivers the promise)

dharrigan18:07:12

that sounds good! I'll do that 🙂

dharrigan20:07:29

Thanks @seancorfield works a charm 🙂