File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 11#lang racket/base
22
33(require racket/async-channel
4- racket/match)
4+ racket/match
5+ "version.rkt " )
56
67;; Scheduler manages a list of asynchronous and cancellable tasks for each document.
78;; For each document, a task is uniquely identified by its key.
2425 (define th (hash-ref doc type))
2526 (unless (thread-dead? th)
2627 (kill-thread th)))
27- (hash-set! doc type (thread task)))))
28+ (hash-set! doc type
29+ (if (version>=9.0?)
30+ (thread #:pool 'own task)
31+ (thread task))))))
2832 (loop)))
2933
3034(define _scheduler (thread schedule))
Original file line number Diff line number Diff line change 1+ #lang racket
2+
3+ (provide version>=9.0?)
4+
5+ (require version/utils)
6+
7+ (define (version>=? target-version)
8+ (not (version<? (version) target-version)))
9+
10+ (define (version>=9.0?)
11+ (version>=? "9.0 " ))
12+
You can’t perform that action at this time.
0 commit comments