Skip to content

Conversation

@pchickey
Copy link
Contributor

Factor out spawn into an unsafe helper spawn_unchecked where block_on can allow a non-static future and output to execute because dataflow ensures the Task does not outlive the future.

Fixes #107

Factor out `spawn` into an unsafe helper `spawn_unchecked` where
`block_on` can allow a non-static future and output to execute because
dataflow ensures the Task does not outlive the future.

Fixes #107
@pchickey
Copy link
Contributor Author

@yoshuawuyts is this API change a breaking one? It permits more programs to typecheck than previously, and shouldn't break any existing ones.

@pchickey pchickey requested a review from yoshuawuyts November 12, 2025 17:58
@pchickey pchickey force-pushed the pch/block_on_without_static branch from 28def15 to 36171c5 Compare November 12, 2025 21:47
@pchickey pchickey force-pushed the pch/block_on_without_static branch from 36171c5 to 49f2f68 Compare November 14, 2025 22:00
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.

'static constraint and borrowed resources

2 participants