Skip to content

Commit

Permalink
Clarify asynchronous nature of Decode()
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Kim committed Dec 18, 2018
1 parent ba01b57 commit 9c7b8bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/raptorq/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ type Decoder interface {
ObjectInfo

// Decode decodes a received encoding symbol.
//
// The result of decoding may not be available immediately after Decode
// returns; IsSourceBlockReady or IsSourceObjectReady may not
// immediately return true even if the symbol made the source block or
// the source object available.
Decode(sbn uint8, esi uint32, symbol []byte)

// IsSourceBlockReady returns whether the given source block has been fully
Expand Down

0 comments on commit 9c7b8bd

Please sign in to comment.