tink_io
tink_io copied to clipboard
Example possibly not accurate?
trafficstars
https://github.com/haxetink/tink_io/blob/gh-pages/README.md#memory-management
It seems the example code here is unfinished by accident. Or does the trace statement actually interfere with the garbage collection?
It's complete, although maybe unclear. It's not the trace statement per se, but rather the fact that the handler captures a reference to the source, thereby delaying GC until the callback has fired.