Skip to content
Snippets Groups Projects
Commit 21cd147c authored by Jonah Husson's avatar Jonah Husson
Browse files

Add suggested values for period

parent ee99709e
No related branches found
No related tags found
2 merge requests!510Release,!376Improve comments to specify how period is formatted
......@@ -296,7 +296,8 @@ func (f *FileTransfer) RegisterSentProgressCallback(tidBytes []byte,
// Parameters:
// - tidBytes - file transfer ID
// - callback - callback that reports file reception progress
// - period - duration (in ms) to wait between progress callbacks triggering
// - period - Duration (in ms) to wait between progress callbacks triggering.
// Suggested default: 50
func (f *FileTransfer) RegisterReceivedProgressCallback(tidBytes []byte,
callback FileTransferReceiveProgressCallback, period int) error {
cb := func(completed bool, received, total uint16,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment