persist the readable stream's cancel callback

This commit is contained in:
Karl Seguin committed 2026-01-14 17:58:41 +08:00
1 parent db2ecfe159
commit f5aee1f4c0
1 file changed
+1 -1
@@ -80,7 +80,7 @@ pub fn init(src_: ?UnderlyingSource, strategy_: ?QueueingStrategy, page: *Page)
if (src.cancel) |callback| {
self._cancel = .{
.callback = callback,
.callback = try callback.persist(),
};
}