%% A mapping containing the chunks tracking
-record(chunk, {idt, % {id, piece_number, state} tuple
                     % state is fetched | {assigned, Pid} | not_fetched,
                chunks}). % {offset, size}



%% A mapping containing the chunks tracking
-record(chunk, {idt :: {integer() | '_' | '$1',
			integer() | '_' | '$1',
			not_fetched | fetched | {assigned, pid() | '_'} | '_'},
                chunks :: [integer() | {integer(), integer(), [term()]}] | '_' | '$2'}).



Write down a specification for the chunk_tbl.
Write down a specification for the chunk_tbl.
