Add contract generation support for Async-Channelof
This commit is contained in:
parent
455bc7664b
commit
b9e600dc1a
|
@ -351,6 +351,7 @@
|
|||
[(Box: t) (box/sc (t->sc/both t))]
|
||||
[(Pair: t1 t2)
|
||||
(cons/sc (t->sc t1) (t->sc t2))]
|
||||
[(Async-Channel: t) (async-channel/sc (t->sc t))]
|
||||
[(Promise: t)
|
||||
(promise/sc (t->sc t))]
|
||||
[(Opaque: p?)
|
||||
|
|
|
@ -12,9 +12,11 @@
|
|||
(for-template racket/base
|
||||
racket/contract/base
|
||||
racket/set
|
||||
racket/async-channel
|
||||
unstable/contract
|
||||
"../../utils/evt-contract.rkt")
|
||||
racket/contract)
|
||||
racket/contract
|
||||
racket/async-channel)
|
||||
|
||||
|
||||
(begin-for-syntax
|
||||
|
@ -158,4 +160,5 @@
|
|||
((sequence/sc . (#:covariant)) sequence/c #:impersonator)
|
||||
((channel/sc . (#:invariant)) channel/c #:chaperone)
|
||||
((continuation-mark-key/sc (#:invariant)) continuation-mark-key/c #:chaperone)
|
||||
((evt/sc (#:covariant)) tr:evt/c #:chaperone))
|
||||
((evt/sc (#:covariant)) tr:evt/c #:chaperone)
|
||||
((async-channel/sc (#:invariant)) async-channel/c #:chaperone))
|
||||
|
|
Loading…
Reference in New Issue
Block a user