Skip to content

Commit

Permalink
Add comment about futures
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Sep 3, 2024
1 parent bd0e1c3 commit 30897f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ type ParseCPFunc func(raw []byte) (*f_log.Checkpoint, error)
type EntriesPathFunc func(n, logSize uint64) string

// IndexFuture is the signature of a function which can return an assigned index or error.
//
// Implementations of this func are likely to be "futures", or a promise to return this data at
// some point in the future, and as such will block when called if the data isn't yet available.
type IndexFuture func() (uint64, error)

// StorageOptions holds optional settings for all storage implementations.
Expand Down

0 comments on commit 30897f0

Please sign in to comment.