Skip to content

Runtime context - #5717

Open
Shubham8287 wants to merge 1 commit into
shub/runtime-network-onlyfrom
shub/runtime-enter
Open

Runtime context#5717
Shubham8287 wants to merge 1 commit into
shub/runtime-network-onlyfrom
shub/runtime-enter

Conversation

@Shubham8287

@Shubham8287 Shubham8287 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Description of Changes

  • Introduces enter function, so Handle does not need to be carried everywhere.
    • Add free functions like spawn, sleep .
  • runtime-core implemntation is Node aware, hence spawn from a logical Node will spawn in that node only.
    • It asserts and improve APIs to block inter-node spawns.
  • Some API hygine (remove Send constraint from core crate, where not needed).

API and ABI breaking changes

NA

Expected complexity level and risk

1

Testing

unit tests

@Shubham8287
Shubham8287 changed the base branch from master to shub/runtime-network-only August 11, 2026 11:36
@Shubham8287
Shubham8287 requested a review from kim August 11, 2026 11:42

@kim kim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great.

Do you think we can have a spawn_local in the runtime API, or does this require a LocalSet indirection to be portable?

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.

2 participants