DashTable(
tabs: newSeqWith(shards, newStringTable(mode)),
locks: newSeqWith(shards, createRwLock()), # error here....
shards: shards,
mode: mode,
)
Error: '=si
nk' is not available for type <RwLock>; routine: newDashTable
Probably need to init the seq, then iterate and init the locks. Something like:
var tb: DashTable
tb.locks = initSeq(20)
for l in tb.locks: l.initLock()