# Question for Combine: Asynchronous Programming with Swift

**URL:** <https://forums.kodeco.com/t/question-for-combine-asynchronous-programming-with-swift/170630>\
**Category:** Combine: Asynchronous Programming with Swift\
**Created:** [May 8, 2022, 3:32am UTC](https://forums.kodeco.com/t/question-for-combine-asynchronous-programming-with-swift/170630 "2022-05-08T03:32:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wm\_mobile\_dev](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/wm_mobile_dev/32/110937_2.png) [@wm\_mobile\_dev](https://forums.kodeco.com/u/wm_mobile_dev)\
**Post date:** [May 8, 2022, 3:32am UTC](https://forums.kodeco.com/t/question-for-combine-asynchronous-programming-with-swift/170630/1 "2022-05-08T03:32:23Z")

</div>

Hello  
I am studying Combine with the book, and I have questions on Chapter 18.

1. There is a description like below, and I can not understand what it means. Specifically on bold text.

> 1. Use the handy AnySubscriber class which takes closures, and immediately request .unlimited values upon subscription to **let the publisher run to completion**.

Why does the publisher run to completion when I use .unlimited?

1. And there is the other description like,

> Note: You could initially request .max(self.capacity) and receive just that, but remember that Combine is demand-driven! If you don’t request as many values as the publisher is capable of producing, you may **never get a completion event**!

I’m just curios why I can’t get completion when using .max(n).  
If I set .max(2), I can get completion after getting two values. Can’t I?

Thanks.

---

<div class="post-metadata">

**Author:** ![robertomachorro](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/robertomachorro/32/111603_2.png) [@robertomachorro](https://forums.kodeco.com/u/robertomachorro)\
**Post date:** [May 8, 2022, 8:58pm UTC](https://forums.kodeco.com/t/question-for-combine-asynchronous-programming-with-swift/170630/2 "2022-05-08T20:58:57Z")

</div>

@freak4pc any suggestions?
