# \[Pitch\] Task Pools

**URL:** <https://forums.swift.org/t/pitch-task-pools/61703>\
**Category:** Pitches\
**Created:** [November 30, 2022, 12:24pm UTC](https://forums.swift.org/t/pitch-task-pools/61703 "2022-11-30T12:24:41Z")\
**Posts on this page:** 1\
**Showing post:** 43

<div class="post-metadata">

**Author:** ![hisekaldma](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/hisekaldma/32/1146_2.png) [@hisekaldma](https://forums.swift.org/u/hisekaldma)\
**Post date:** [December 13, 2022, 11:21am UTC](https://forums.swift.org/t/pitch-task-pools/61703/43 "2022-12-13T11:21:57Z")

</div>

Given that child task results are discarded when `discardResults: true`, would you ever use it with anything but `Void` for `ChildTaskResult`? And if you wouldn’t, should that be encoded in the method signatures? Something like:

```swift
	public func withDiscardingTaskGroup<GroupResult>(
	  returning returnType: GroupResult.Type = GroupResult.self,
	  body: (inout TaskGroup<Void>) async -> GroupResult
	) async -> GroupResult {
	
	public func withDiscardingThrowingTaskGroup<GroupResult>(
	  returning returnType: GroupResult.Type = GroupResult.self,
	  body: (inout ThrowingTaskGroup<Void, Error>) async throws -> GroupResult
	) async rethrows -> GroupResult 

```

---

_[View the full topic](https://forums.swift.org/t/pitch-task-pools/61703)._
