tink_io icon indicating copy to clipboard operation
tink_io copied to clipboard

Example possibly not accurate?

Open ConfidantCommunications opened this issue 2 years ago • 1 comments
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?

ConfidantCommunications avatar May 05 '23 20:05 ConfidantCommunications

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.

back2dos avatar May 06 '23 12:05 back2dos