Skip to content

Modify task extensions to support backgroundTask#260

Merged
dsyme merged 5 commits intofsprojects:mainfrom
amongonz:background-task-ce
Mar 7, 2026
Merged

Modify task extensions to support backgroundTask#260
dsyme merged 5 commits intofsprojects:mainfrom
amongonz:background-task-ce

Conversation

@amongonz
Copy link
Contributor

I noticed the for-loop extension to the task CE doesn't work with backgroundTask because the code extends TaskBuilder instead of the more general TaskBuilderBase, from which both TaskBuilder and BackgroundTaskBuilder inherit.

This PR does the small change to support backgroundTask as well.

Modifies the extensions to TaskBuilder to extend TaskBuilderBase
instead, so they apply to both the task and backgroundTask builders.
@abelbraaksma
Copy link
Member

abelbraaksma commented Feb 20, 2025

Oops, your PR went unnoticed for some time, sorry about that!

Thanks @amongonz for finding this bug and tackling it. I will need some accompanying tests to ensure that if anyone changes this again, it will break. I think a single test that didn't compile before with BackgroundTask and now does work with it, would suffice to tackle this.

Don't worry if you don't have time to add a test, I can do that as well ;).

@dsyme dsyme merged commit 12657a9 into fsprojects:main Mar 7, 2026
4 checks passed
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.

3 participants