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

[PoC][Concurrency] Proof out and simulate "send" semantics #62213

Closed

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Nov 21, 2022

The same test if implemented with Task{} will crash as the order of the enqueues is not guaranteed.

This is just a silly PoC to showcase how a send-like semantics enqueue order improves on the status quo of working with actors when deterministic order is expected.

@ktoso ktoso added the concurrency Feature: umbrella label for concurrency language features label Nov 21, 2022
@ktoso
Copy link
Contributor Author

ktoso commented Nov 21, 2022

@swift-ci please smoke test

fputs("spawn:\(iteration)\n", stderr)


self.send {
Copy link
Contributor Author

@ktoso ktoso Nov 21, 2022

Choose a reason for hiding this comment

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

If this was Task{} the order of those executions is not guaranteed, and the test would crash on the precondition below.

@ktoso ktoso changed the title [PoC][Concurrency] simulate "send" semantics, for forums discussion [PoC][Concurrency] Proof out and simulate "send" semantics Nov 21, 2022
@ktoso
Copy link
Contributor Author

ktoso commented Apr 18, 2024

Will be replaced with Task { [isolated target]

@ktoso ktoso closed this Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant