Skip to content

feat: support request priority - #243

Merged
riteshshukla04 merged 1 commit into
margelo:mainfrom
riteshshukla04:feat/request-priority
Sep 30, 2026
Merged

riteshshukla04 merged 1 commit into
margelo:mainfrom
riteshshukla04:feat/request-priority

Conversation

@riteshshukla04

Copy link
Copy Markdown
Member

Adds init.priority ('high', 'low', 'auto') to plain, streamed, worklet and prefetch requests, and persists it for prefetchOnAppStart.
Android maps it to Cronet request priority; iOS sets URLSessionTask.priority (iOS 16+ through a task delegate that is only created when needed), so requests without a priority take the same path as before.
Harness tests assert priority ordering on Android and every request path on both platforms; a 200-iteration A/B against main on device showed no measurable overhead.

@vercel

vercel Bot commented Sep 30, 2026

Copy link
Copy Markdown

@riteshshukla04 is attempting to deploy a commit to the Margelo Team on Vercel.

A member of the Team first needs to authorize it.

@riteshshukla04
riteshshukla04 merged commit 771caf8 into margelo:main Sep 30, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant