Skip to content

Commit

Permalink
Revert "adding transaction"
Browse files Browse the repository at this point in the history
This reverts commit bb7c279.
  • Loading branch information
samber committed Dec 12, 2022
1 parent bb7c279 commit 13e460f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 295 deletions.
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ We currently support the following data types:
- `IOEither[T]`
- `Task[T]`
- `TaskEither[T]`
- `Transaction[T]`
- `State[S, A]`

## 🚀 Install
Expand Down Expand Up @@ -326,19 +325,6 @@ Methods:
- `.ToTask()` [doc](https://pkg.go.dev/github.com/samber/mo#TaskEither.ToTask)
- `.ToEither()` [doc](https://pkg.go.dev/github.com/samber/mo#TaskEither.ToEither)

### Transaction[T any]

`Transaction` implements a local Saga pattern.

Constructors:

- `mo.NewTransaction()` [doc](https://pkg.go.dev/github.com/samber/mo#NewTransaction)

Methods:

- `.Then()` [doc](https://pkg.go.dev/github.com/samber/mo#NewTransaction.Then)
- `.Process()` [doc](https://pkg.go.dev/github.com/samber/mo#NewTransaction.Process)

### State[S any, A any]

`State` represents a function `(S) -> (A, S)`, where `S` is state, `A` is result.
Expand Down
54 changes: 0 additions & 54 deletions transaction.go

This file was deleted.

125 changes: 0 additions & 125 deletions transaction_example_test.go

This file was deleted.

102 changes: 0 additions & 102 deletions transaction_test.go

This file was deleted.

0 comments on commit 13e460f

Please sign in to comment.