From 4f658904b5e2d19a64ad5d8a205f51a8f4869b4f Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 20 Jun 2018 18:16:18 -0600 Subject: [PATCH] reference: mention that a place is managed by a custodian Closes #1824 --- pkgs/racket-doc/scribblings/reference/eval-model.scrbl | 2 +- pkgs/racket-doc/scribblings/reference/places.scrbl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/racket-doc/scribblings/reference/eval-model.scrbl b/pkgs/racket-doc/scribblings/reference/eval-model.scrbl index 76d116b51d..873e4a550a 100644 --- a/pkgs/racket-doc/scribblings/reference/eval-model.scrbl +++ b/pkgs/racket-doc/scribblings/reference/eval-model.scrbl @@ -984,7 +984,7 @@ outermost frame of the continuation for any new thread. A @deftech{custodian} manages a collection of threads, @tech{file-stream ports}, TCP ports, @tech{TCP listeners}, @tech{UDP -sockets}, and @tech{byte converters}. Whenever a thread, @|etc|, is +sockets}, @tech{byte converters}, and @tech{places}. Whenever a thread, @|etc|, is created, it is placed under the management of the @deftech{current custodian} as determined by the @racket[current-custodian] @tech{parameter}. diff --git a/pkgs/racket-doc/scribblings/reference/places.scrbl b/pkgs/racket-doc/scribblings/reference/places.scrbl index 637675047b..a96889ecb4 100644 --- a/pkgs/racket-doc/scribblings/reference/places.scrbl +++ b/pkgs/racket-doc/scribblings/reference/places.scrbl @@ -113,6 +113,9 @@ used: @racket[current-library-collection-paths], @racket[current-library-collection-links], and @racket[current-compiled-file-roots]. +A newly created place is registered with the @tech{current custodian}, +so that the place is terminated when the custodian is shut down. + @; ---------------------------------------- @section[#:tag "places-api"]{Using Places}