ng0 has quit [Quit: Alexa, when is the end of world?]
mzan has left #racket [#racket]
pierpal has joined #racket
orivej has joined #racket
orivej has quit [Ping timeout: 240 seconds]
dddddd has quit [Remote host closed the connection]
rnmhdn has joined #racket
iyzsong has joined #racket
ubLIX has joined #racket
jao has joined #racket
ng0 has joined #racket
rnmhdn has quit [Ping timeout: 245 seconds]
rnmhdn has joined #racket
mzan has joined #racket
iyzsong has quit [Read error: Connection reset by peer]
rnmhdn has quit [Ping timeout: 250 seconds]
iyzsong has joined #racket
ng0 has quit [Quit: Alexa, when is the end of world?]
ubLIX has quit [Quit: ubLIX]
orivej has joined #racket
acarrico has joined #racket
orivej has quit [Ping timeout: 268 seconds]
lockywolf has joined #racket
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 240 seconds]
pie___ has joined #racket
pie__ has quit [Remote host closed the connection]
lockywolf_ has quit [Remote host closed the connection]
lockywolf_ has joined #racket
tilpner has quit [Disconnected by services]
rnmhdn has joined #racket
iyzsong has quit [Ping timeout: 268 seconds]
dddddd has joined #racket
sleepnap has joined #racket
orivej has joined #racket
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 246 seconds]
badkins has joined #racket
badkins_ has joined #racket
badkins has quit [Ping timeout: 250 seconds]
endformationage has joined #racket
badkins_ is now known as badkins
lockywolf_ has joined #racket
lockywolf__ has quit [Ping timeout: 244 seconds]
lockywolf_ has quit [Ping timeout: 268 seconds]
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #racket
rnmhdn has quit [Ping timeout: 246 seconds]
ziyourenxiang has quit [Ping timeout: 250 seconds]
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #racket
orivej has quit [Ping timeout: 245 seconds]
pierpal has quit [Read error: Connection reset by peer]
ubLIX has joined #racket
pierpal has joined #racket
pera has joined #racket
tilpner has joined #racket
rnmhdn has joined #racket
orivej has joined #racket
rnmhdn has quit [Ping timeout: 268 seconds]
orivej has quit [Ping timeout: 250 seconds]
buyfn has joined #racket
ubLIX has quit [Quit: afk haggis hunting]
quipa has joined #racket
notzmv has quit [Ping timeout: 250 seconds]
notzmv has joined #racket
notzmv has quit [Ping timeout: 250 seconds]
quipa has quit [Read error: Connection reset by peer]
buyfn has quit [Quit: buyfn]
pierpal has quit [Quit: Poof]
pierpal has joined #racket
notzmv has joined #racket
mzan has quit [Ping timeout: 272 seconds]
acarrico has quit [Ping timeout: 245 seconds]
dddddd has quit [Ping timeout: 250 seconds]
rnmhdn has joined #racket
acarrico has joined #racket
badkins has quit [Ping timeout: 250 seconds]
Arcaelyx has joined #racket
sleepnap has quit [Ping timeout: 268 seconds]
sleepnap has joined #racket
buyfn has joined #racket
dustyweb has quit [Remote host closed the connection]
rnmhdn has quit [Ping timeout: 250 seconds]
pera has quit [Ping timeout: 246 seconds]
buyfn has quit [Quit: buyfn]
dustyweb has joined #racket
pera has joined #racket
<dzoe>
I've got a function like (define (fn) (define th (thread ...)) (lambda () ...)) - if I get (define a (fn)) and subsequently call (a) it does what I want.
<dzoe>
But how to stop the thread if 'a gets GC'd?
<dzoe>
Like in (let ((a (fn))) ...) - after the end of let the thread is still running.
dddddd has joined #racket
<dzoe>
It is rather easy to stop it, but I would really like to implement it in a way that is transparent to the rest of the code.
<dzoe>
Right now I've implemented the inner lambda so it accepts optional argument to stop the thread and call it with this argument at the end of the scope.
<dzoe>
But that is definitely not the interface I want to create ...
libertyprime has joined #racket
Rerecursing has joined #racket
<dzoe>
Ah, will-executor? to the rescue. Awesome.
notzmv has quit [Ping timeout: 246 seconds]
orivej has joined #racket
Rerecursing has quit [Quit: Rerecursing]
pierpal has quit [Ping timeout: 250 seconds]
g00s has joined #racket
notzmv has joined #racket
libertyprime has quit [Remote host closed the connection]
zv has quit [Ping timeout: 264 seconds]
FreeFull has joined #racket
orivej has quit [Ping timeout: 250 seconds]
sleepnap has left #racket [#racket]
zv has joined #racket
pierpal has joined #racket
pierpal has quit [Ping timeout: 250 seconds]
badkins has joined #racket
pierpal has joined #racket
Fernando-Basso has joined #racket
FernandoBasso has joined #racket
Fernando-Basso has quit [Ping timeout: 252 seconds]