func (eh *history) NextDecisionEvents() (result []*s.HistoryEvent, markers []*s.HistoryEvent, binaryChecksum *string, err error) {
	if eh.next == nil {
		eh.next, _, err = eh.nextDecisionEvents()
		if err != nil {
			return result, markers, eh.binaryChecksum, err
		}
	}

	result = eh.next
	checksum := eh.binaryChecksum
	if len(result) > 0 {
		eh.next, markers, err = eh.nextDecisionEvents()
	}
	return result, markers, checksum, err
}
// NextDecisionEvents returns events that there processed as new by the next decision.
// TODO(maxim): Refactor to return a struct instead of multiple parameters
NextDecisionEvents returns events that there processed as new by the next decision.
TODO(maxim): Refactor to return a struct instead of multiple parameters
// NextDecisionEvents returns events that there processed as new by the next decision . // TODO ( maxim ) : Refactor to return a struct instead of multiple parameters
func (eh *history) NextDecisionEvents() (result []*s.HistoryEvent, markers []*s.HistoryEvent, binaryChecksum *string, err error) {
	if eh.next == nil {
		eh.next, _, err = eh.nextDecisionEvents()
		if err != nil {
			return result, markers, eh.binaryChecksum, err
		}
	}
	result = eh.next
	checksum := eh.binaryChecksum
	if len(result) > 0 {
		eh.next, markers, err = eh.nextDecisionEvents()
	}
	return result, markers, checksum, err
}
func ( eh * history ) NextDecisionEvents ( ) ( result [ ] * s . HistoryEvent , markers [ ] * s . HistoryEvent , binaryChecksum * string , err error ) { if eh . next == nil { eh . next , _ , err = eh . nextDecisionEvents ( ) if err != nil { return result , markers , eh . binaryChecksum , err } } result = eh . next checksum := eh . binaryChecksum if len ( result ) > 0 { eh . next , markers , err = eh . nextDecisionEvents ( ) } return result , markers , checksum , err }
NextDecisionEvents returns events that there processed as new by the next decision.
NextDecisionEvents returns events that there processed as new by the next decision .