Skip to content

Commit

Permalink
Merge pull request #26 from Primetalk/continuation
Browse files Browse the repository at this point in the history
Update MaxContinuationDepth
  • Loading branch information
Primetalk committed Jun 14, 2022
2 parents 587fea0 + 89148b7 commit b1fe85f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io/continuation.go
Expand Up @@ -16,8 +16,8 @@ type ResultOrContinuation[A any] struct {
Continuation *Continuation[A]
}

// MaxContinuationDepth is equal to 1000. It's the maximum depth we run continuation before giving up.
var MaxContinuationDepth = 1000
// MaxContinuationDepth is equal to 1000000000000. It's the maximum depth we run continuation before giving up.
var MaxContinuationDepth = 1000000000000

// ObtainResult executes continuation until final result is obtained.
func ObtainResult[A any](c Continuation[A]) (res A, err error) {
Expand Down

0 comments on commit b1fe85f

Please sign in to comment.