mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
Merge pull request #1367 from lightpanda-io/readable_stream_cancel_persist
persist the readable stream's cancel callback
This commit is contained in:
@@ -80,7 +80,7 @@ pub fn init(src_: ?UnderlyingSource, strategy_: ?QueueingStrategy, page: *Page)
|
|||||||
|
|
||||||
if (src.cancel) |callback| {
|
if (src.cancel) |callback| {
|
||||||
self._cancel = .{
|
self._cancel = .{
|
||||||
.callback = callback,
|
.callback = try callback.persist(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user