Remove reflection warning on scopes

This commit is contained in:
Joshua Suskalo 2021-09-16 15:13:50 -05:00
parent 6bd5c6c05a
commit d6d9ac316c

View file

@ -28,7 +28,7 @@
The memory allocated within this scope is cheap to allocate, like a native The memory allocated within this scope is cheap to allocate, like a native
stack." stack."
[] ^ResourceScope []
(ResourceScope/newConfinedScope)) (ResourceScope/newConfinedScope))
(defn shared-scope (defn shared-scope
@ -36,7 +36,7 @@
This scope can be shared across threads and memory allocated in it will only This scope can be shared across threads and memory allocated in it will only
be cleaned up once every thread accessing the scope closes it." be cleaned up once every thread accessing the scope closes it."
[] ^ResourceScope []
(ResourceScope/newSharedScope)) (ResourceScope/newSharedScope))
(defn connected-scope (defn connected-scope
@ -47,7 +47,7 @@
This type of scope cannot be closed, and therefore should not be created in This type of scope cannot be closed, and therefore should not be created in
a [[with-open]] clause." a [[with-open]] clause."
[] ^ResourceScope []
(ResourceScope/newImplicitScope)) (ResourceScope/newImplicitScope))
(defn alloc (defn alloc