Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RecoverWith (0.08 sec)

  1. test/typeparam/issue50561.dir/diameter.go

    	Foreach(f func(v T), ctx ...Executor)
    	OnComplete(cb func(try Try[T]), ctx ...Executor)
    	IsCompleted() bool
    	//	Value() Option[Try[T]]
    	Failed() Future[error]
    	Recover(f func(err error) T, ctx ...Executor) Future[T]
    	RecoverWith(f func(err error) Future[T], ctx ...Executor) Future[T]
    }
    
    type Try[T any] struct {
    	v   *T
    	err error
    }
    
    func (r Try[T]) IsSuccess() bool {
    	return r.v != nil
    }
    
    type ByteBuffer struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 13 22:58:24 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top