Re: [racket-users] Looking to trigger the end of a loop by the creation of a file.

2021-10-02 Thread George Neuner
On 10/2/2021 7:25 PM, Don Green wrote: Looking to trigger the end of a loop by the creation of a file. Is this possible? Is this advisable? Currently using: a 'for' loop with a 'for' loop guard expression to test for the existence of a file. Tried file-exists? but that does not seem

Re: [racket-users] Looking to trigger the end of a loop by the creation of a file.

2021-10-02 Thread Sorawee Porncharoenwase
What do you mean by "Tried using Racket function: filesystem-change-evt but that did not seem appropriate."? What's inappropriate about it? My first thought is to initialize a variable with `#f`. Spawn a thread before the loop that uses `filesystem-change-evt` so that when the event that you are

[racket-users] Looking to trigger the end of a loop by the creation of a file.

2021-10-02 Thread Don Green
Looking to trigger the end of a loop by the creation of a file. Is this possible? Is this advisable? Currently using: a 'for' loop with a 'for' loop guard expression to test for the existence of a file. Tried file-exists? but that does not seem appropriate. Tried using Racket function: