Re: [racket-users] Custodian/Will question

2016-04-21 Thread Deren Dohoda
Thanks, Matthew. There's safety and then there's safety. I'm mostly concerned with and application-level soft reset. I can add some thread messaging to make sure the thread dies on its own, then shut down everything. I was hoping to avoid this plumbing. Deren On Apr 21, 2016 10:40 AM, "Matthew F

Re: [racket-users] Custodian/Will question

2016-04-21 Thread Matthew Flatt
At Tue, 19 Apr 2016 10:39:57 -0400, Deren Dohoda wrote: > I have a thread that can only be shut down during certain points: In general, you can't implement that safety in Racket, in much the same way you can't implement that in Unix or Windows process. As long as the thread might get shut down th

[racket-users] Custodian/Will question

2016-04-19 Thread Deren Dohoda
Hi Racketeers, I'm a little unclear on the right way to use custodians and wills. I have a thread that can only be shut down during certain points: it does some writing operations on a port and this write must finish under normal circumstances. I worry that if this thread is managed by a custodia