Skip to content

Commit

Permalink
buffer_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
bjudkewitz committed Sep 13, 2024
1 parent aaa6654 commit 0b931b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def consume(queue, pid):
array, meta = queue.get()
print(f'consumer {pid} consumed {type(array)} {array.shape} {array.dtype}; meta: {meta}; hash: {hash(array.tobytes())}\n')

queue = DejaQueue(bytes=10e6)
queue = DejaQueue(buffer_bytes=10e6)
producer = Process(target=produce, args=(queue,))
consumers = [Process(target=consume, args=(queue, pid)) for pid in range(3)]
for c in consumers:
Expand Down

0 comments on commit 0b931b3

Please sign in to comment.