Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add a promise priotizer #1030

Closed
wants to merge 11 commits into from
Closed

Conversation

achrafl0
Copy link
Collaborator

@achrafl0 achrafl0 commented Dec 7, 2021

No description provided.

@achrafl0 achrafl0 added the enhancement This is a new feature and/or behavior which brings an improvement to the RxPlayer label Dec 7, 2021
Copy link
Collaborator

@peaBerberian peaBerberian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get how either form of "cancels" are implemented:

  • I don't see how removing a waiting or pending task from the scheduler could be performed by the caller.
  • I don't see how temporarily cancelling a low priority task is performed by the scheduler.
    I see a call to .cancel() but it doesn't seem link to anything.

src/core/fetchers/segment/promise_prioritizer.ts Outdated Show resolved Hide resolved
src/core/fetchers/segment/promise_prioritizer.ts Outdated Show resolved Hide resolved
src/core/fetchers/segment/promise_prioritizer.ts Outdated Show resolved Hide resolved
src/core/fetchers/segment/promise_prioritizer.ts Outdated Show resolved Hide resolved
src/core/fetchers/segment/promise_prioritizer.ts Outdated Show resolved Hide resolved
src/core/fetchers/segment/promise_prioritizer.ts Outdated Show resolved Hide resolved
src/core/fetchers/segment/promise_prioritizer.ts Outdated Show resolved Hide resolved
@peaBerberian peaBerberian added the Priority: 3 (Low) This issue or PR has a low priority. label Feb 8, 2022
@peaBerberian
Copy link
Collaborator

Its commits have been cherry-picked in #1158, squashed and merged into next

@peaBerberian peaBerberian deleted the feat/change-scheduler-to-promise branch August 22, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is a new feature and/or behavior which brings an improvement to the RxPlayer Priority: 3 (Low) This issue or PR has a low priority.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants