From ede040cf005754ddd3e1b35491f50c1bb4def2c5 Mon Sep 17 00:00:00 2001 From: Mathieu Ledru Date: Fri, 30 Aug 2024 18:58:01 +0200 Subject: [PATCH] :memo: Release v1.2.2 --- CHANGELOG.md | 2 +- docs/package.json | 4 ++-- docs/src/content/en/docs/getting-started/job.md | 10 ++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2c017e..6b17280 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## v1.2.x +## v1.2.2 - Flow can now use `Flow\JobInterface` as job input - Add Symfony Bridge diff --git a/docs/package.json b/docs/package.json index 6fce836..45dda54 100644 --- a/docs/package.json +++ b/docs/package.json @@ -12,7 +12,7 @@ "keywords": [ "flow" ], - "version": "1.2.1", + "version": "1.2.2", "browserslist": [ "defaults" ], @@ -91,4 +91,4 @@ } ] } -} \ No newline at end of file +} diff --git a/docs/src/content/en/docs/getting-started/job.md b/docs/src/content/en/docs/getting-started/job.md index 181037e..00c6030 100644 --- a/docs/src/content/en/docs/getting-started/job.md +++ b/docs/src/content/en/docs/getting-started/job.md @@ -15,6 +15,16 @@ toc: true # Job +When using Flow, you can pass Closure or JobInterface, it's useful when you want to specialize your Job, that come with dependecy injection. + +## ClosureJob + +ClosureJob simplifies job handling by allowing the use of closures or custom job classes, providing a versatile solution for managing jobs in your application. + +## YJob + +The YJob class defines the Y combinator to recursively apply the job function, making it particularly useful in scenarios where you need to perform recursive tasks without explicitly writing recursive functions. + ## Make your own Job You can make your custom Job by implementing `Flow\JobInterface`.