Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kalimehtar/finalizer
Common trivial finalizer for Racket
https://github.com/kalimehtar/finalizer
racket
Last synced: about 1 month ago
JSON representation
Common trivial finalizer for Racket
- Host: GitHub
- URL: https://github.com/kalimehtar/finalizer
- Owner: Kalimehtar
- License: mit
- Created: 2014-08-02T17:38:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-16T04:02:18.000Z (over 9 years ago)
- Last Synced: 2024-10-16T03:02:20.397Z (3 months ago)
- Topics: racket
- Language: Racket
- Size: 161 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
finalizer
=========Common trivial finalizer for Racket
Usage:
```racket
(require finalizer)
(define a-box (box #f))
(register-finalizer a-box
(λ (x) (printf "a-box is now garbage\n")))
(collect-garbage) (collect-garbage) (collect-garbage)
(printf "breaking the link\n")
(set! a-box #f)
(collect-garbage) (collect-garbage) (collect-garbage)
```