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

Task executor preference #2187

Merged
merged 23 commits into from
Dec 13, 2023
Merged

Task executor preference #2187

merged 23 commits into from
Dec 13, 2023

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Oct 17, 2023

Polishing up details here.

Has some inter-play with both typed-throws and #2174 which are not included here but it attempts to be stand-alone.

@ktoso ktoso marked this pull request as draft October 17, 2023 04:26
proposals/NNNN-task-executor-preference.md Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Show resolved Hide resolved
The `TaskExecutor` is defined as:

```swift
public protocol TaskExecutor: Executor {
Copy link
Member

Choose a reason for hiding this comment

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

I think we should provide some docs here on what is allowed. A TaskExecutor is allowed to be a pool of threads or a single thread. Both of them are fine and we should call it out on the docs.

@ktoso ktoso changed the title [Draft] Task executor preference [Pitch] Task executor preference Nov 2, 2023
@ktoso ktoso marked this pull request as ready for review November 13, 2023 22:17
@ktoso
Copy link
Contributor Author

ktoso commented Nov 13, 2023

I believe this is ready for review now -- the forums thread on pitch also has calmed down, and implementation is almost complete -- only cleanups remain

@ktoso ktoso changed the title [Pitch] Task executor preference Task executor preference Nov 13, 2023
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
proposals/NNNN-task-executor-preference.md Outdated Show resolved Hide resolved
Co-authored-by: John McCall <rjmccall@gmail.com>
@DougGregor DougGregor merged commit e5bf0ff into swiftlang:main Dec 13, 2023
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.