Y
Hacker News
new
|
ask
|
show
|
jobs
by
paholg
1012 days ago
There are workarounds. You could, for example, have a drop implementation spawn a task to do the I/O and exit.
Also, if your cleanup takes parameters, you can just store them in the struct.