Skip to content

Commit 36b45c6

Browse files
iamFIREcrackervindarel
authored andcommitted
Replace infinite loop with with (loop repeat 5 ...
This way the background thread is bound to terminate on its own, without the user having to figure out how to terminate it.
1 parent 64bd97e commit 36b45c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ If needed, import the dependencies first:
397397
(swank:create-server :port 4006)
398398
(format t "we are past go!~%")
399399
(bt:make-thread (lambda ()
400-
(loop while t do
400+
(loop repeat 5 do
401401
(sleep 5)
402402
(dostuff)
403403
(incf *counter*)))

0 commit comments

Comments
 (0)