organoid_tracker.core.concurrent module

class organoid_tracker.core.concurrent.ConcurrentSet

Bases: object

A set that uses locks everywhere to make it suitable for concurrent use. No iterator support yet.

add(object: Hashable)

Add an element to a set.

This has no effect if the element is already present.

remove(object: Hashable)

Remove an element from a set; it must be a member.

If the element is not a member, raise a KeyError.