Skip to content

Commit

Permalink
Emphasize that the default finalizer behaves as a no-op.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimball Germane authored and jeapostrophe committed Mar 5, 2019
1 parent 4601f4d commit 08130f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
flushed. Otherwise, only those servlet caches to which @racket[url->path]
maps the given URLs are flushed. The second optional argument is a procedure
which is invoked on each cached value before it is flushed, which can be used
to finalize servlet resources. It defaults to @racket[void].
to finalize servlet resources. Beware that the default value @racket[void]
performs no finalization. In particular, it does not shut down the servlet's
custodian, instead allowing the servlet's custodian-managed resources (such
as threads) to persist.

The second return value is a procedure that uses
@racket[url->path] to resolve the URL to a path, then uses
Expand Down

0 comments on commit 08130f3

Please sign in to comment.