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

Use a DiscardingTaskGroup #33

Open
Joannis opened this issue Sep 18, 2024 · 1 comment
Open

Use a DiscardingTaskGroup #33

Joannis opened this issue Sep 18, 2024 · 1 comment

Comments

@Joannis
Copy link
Member

Joannis commented Sep 18, 2024

https://github.com/hummingbird-project/swift-jobs/blob/main/Sources/Jobs/JobQueueHandler.swift#L42

This needs to become a DiscardingTaskGroup, because even a Void.self job allocated memory per job

@adam-fowler
Copy link
Member

We need to be able to wait on the results of a child task running which might make this difficult. But I was also of the understanding if I wait on the result then it is dropped and the memory is freed. I can have a look

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

No branches or pull requests

2 participants