From f55f78e70e57d08c99df2c237e0a70c9e714e2e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 27 Jan 2025 13:37:31 -0800 Subject: [PATCH] update CHANGELOG.md --- CHANGELOG.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76ad41a12..bba54de5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,10 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- In order to create tasks in Pipecat it is now recommended to use - `utils.asyncio.create_task()`. It takes care of uncaught exceptions, task +- In order to create tasks in Pipecat frame processors it is now recommended to + use `FrameProcessor.create_task()` (which uses the new + `utils.asyncio.create_task()`). It takes care of uncaught exceptions, task cancellation handling and task management. To cancel or wait for a task there - is `utils.asyncio.cancel_task()` and `utils.asyncio.wait_for_task()`. All of + is `FrameProcessor.cancel_task()` and `FrameProcessor.wait_for_task()`. All of Pipecat processors have been updated accordingly. Also, when a pipeline runner finishes, a warning about dangling tasks might appear, which indicates if any of the created tasks was never cancelled or awaited for (using these new