Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMake using requestIdleCallback optional to overcome it's not being reliably called in Electron #1634
Comments
This comment has been minimized.
This comment has been minimized.
|
I had a similar problem, with |
This comment has been minimized.
This comment has been minimized.
|
Related to #1615 |
This comment has been minimized.
This comment has been minimized.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This comment has been minimized.
This comment has been minimized.
|
This issue should be fixed now that #1615 is merged and released as 0.107.11 |
This comment has been minimized.
This comment has been minimized.
|
I should have been more specific. In a Chrome extension background page, So, it doesn't seem like this change will fix the behavior in extensions, but my workaround is working fine for me so I'm fine with the status quo. Just leaving this comment here in case future people run into it. |
This comment has been minimized.
This comment has been minimized.
|
@lacker Very informative. Thanks for the comment! |
What version of WebTorrent?
0.103.1
What operating system and Node.js version?
Node 10.15.3, OS X 10.14.4
What browser and version? (if using WebTorrent in the browser)
Electron 4.2.2
What did you expect to happen?
requestIdleCallback must be called to perform downloading of data.
What actually happened?
It's called sometimes in unpredictable manner. Mostly not called at all.
My proposal is to make using requestIdleCallback optional. Thanks.