mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-18 17:02:26 +00:00
24 lines
543 B
Nim
24 lines
543 B
Nim
|
|
||
|
import std/sequtils
|
||
|
|
||
|
import pkg/taskpools
|
||
|
import pkg/taskpools/flowvars
|
||
|
import pkg/chronos
|
||
|
import pkg/chronos/threadsync
|
||
|
import pkg/questionable/results
|
||
|
|
||
|
|
||
|
const
|
||
|
CompletitionTimeout = 1.seconds # Maximum await time for completition after receiving a signal
|
||
|
CompletitionRetryDelay = 10.millis
|
||
|
|
||
|
type
|
||
|
EncoderBackendPtr = ptr EncoderBackend
|
||
|
|
||
|
# Args objects are missing seq[seq[byte]] field, to avoid unnecessary data copy
|
||
|
EncodeTaskArgs = object
|
||
|
signal: ThreadSignalPtr
|
||
|
backend: EncoderBackendPtr
|
||
|
blockSize: int
|
||
|
ecM: int
|