# Controlling the flow of Coroutines by Tasks ?

**URL:** <https://forums.freertos.org/t/controlling-the-flow-of-coroutines-by-tasks/4074>\
**Category:** Kernel\
**Created:** [September 6, 2007, 2:11pm UTC](https://forums.freertos.org/t/controlling-the-flow-of-coroutines-by-tasks/4074 "2007-09-06T14:11:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [September 6, 2007, 2:11pm UTC](https://forums.freertos.org/t/controlling-the-flow-of-coroutines-by-tasks/4074/1 "2007-09-06T14:11:44Z")

</div>

**[mkrug](https://sourceforge.net/u/mkrug/)** wrote on [Thursday, September 06, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/b33cfe92/#20ed):

Hello,

I just ask myself if there is a possiblity to control CoRoutines out of tasks. From the API documentation it looks like that the Semaphore, Queues etc mechanisms work only exclusivly for the task-to-task control or CoRoutine-to-CoRoutine control.  
What I like to see is to start a control until it waits for a semaphore that is given within a usual task.

Best Regards  
Markus

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [September 9, 2007, 7:44am UTC](https://forums.freertos.org/t/controlling-the-flow-of-coroutines-by-tasks/4074/2 "2007-09-09T07:44:27Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, September 09, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/b33cfe92/#20ed/cde3):

You assumptions are correct in the current version, and like you I agree it would be a ‘nice to have’ to change this behaviour.&nbsp; See here:[https://sourceforge.net/forum/forum.php?thread\_id=1819436&forum\_id=382005](https://sourceforge.net/forum/forum.php?thread_id=1819436&forum_id=382005)

Regards.
