persist the readable stream's cancel callback

This commit is contained in:
Karl Seguin
2026-01-14 17:58:41 +08:00
parent db2ecfe159
commit f5aee1f4c0

View File

@@ -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(),
};
}