Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(task): add an identity Task factory #38

Merged
merged 1 commit into from Apr 11, 2024

Conversation

kennedykori
Copy link
Contributor

Add a factory method on the Task class, sghi.task.Task.of_identity. This returns identity Task instances that always return their input argument as is when invoked.

Add a factory method on the `Task` class, `sghi.task.Task.of_identity`.
This returns identity `Task` instances that always return their input
argument as is when invoked.
@kennedykori kennedykori self-assigned this Apr 11, 2024
@kennedykori kennedykori merged commit 6db479b into next Apr 11, 2024
4 checks passed
@kennedykori kennedykori deleted the feat-add-identity-task-factory branch April 11, 2024 17:48
kennedykori added a commit that referenced this pull request Apr 11, 2024
Add a factory method on the `Task` class, `sghi.task.Task.of_identity`.
This returns identity `Task` instances that always return their input
argument as is when invoked.
kennedykori added a commit that referenced this pull request Apr 11, 2024
## [1.4.0-rc.1](v1.3.0...v1.4.0-rc.1) (2024-04-11)

### Bug Fixes

* **task:** assorted fixes for `sghi.task` module ([#34](#34)) ([f7fd150](f7fd150))

### Features

* **task:** add `sghi.task.Task` composition support ([#36](#36)) ([53ca0fb](53ca0fb))
* **task:** add a new task, `sghi.task.Supplier` ([#37](#37)) ([d06824f](d06824f))
* **task:** add an identity `Task` factory ([#38](#38)) ([05ae633](05ae633))

### Refactors

* **patch:** deprecate `sghi.task.Consume` for removal ([#35](#35)) ([0ff6c46](0ff6c46))
* **task:** improve `sghi.task` module typings ([#33](#33)) ([a393453](a393453))
kennedykori added a commit that referenced this pull request Apr 11, 2024
## [1.4.0](v1.3.0...v1.4.0) (2024-04-11)

### Bug Fixes

* **task:** assorted fixes for `sghi.task` module ([#34](#34)) ([f7fd150](f7fd150))

### Dependency Updates

* **deps:** upgrade project dependencies ([#40](#40)) ([47c0bf8](47c0bf8))

### Features

* **task:** add `sghi.task.Task` composition support ([#36](#36)) ([53ca0fb](53ca0fb))
* **task:** add a new task, `sghi.task.Supplier` ([#37](#37)) ([d06824f](d06824f))
* **task:** add an identity `Task` factory ([#38](#38)) ([05ae633](05ae633))

### Refactors

* **patch:** deprecate `sghi.task.Consume` for removal ([#35](#35)) ([0ff6c46](0ff6c46))
* **task:** improve `sghi.task` module typings ([#33](#33)) ([a393453](a393453))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant