# Closure `Maestro\Core\Task\ClosureTask` Run an anonymous function into the pipeline. ## Parameters - **closure** - `Closure(Context ): Context` ## Description This task allows you to run an anonymous function. The function accepts the `Context` and must return the `Context`. ```php new ClosureTask( function (Context $context) { return $context; } ); ```