Acquirable<T>
represents an object of type T
that you can retrieve but where its thread-safe access is not certain.Acquirable<Entity>
containing entity B, and from there acquire it to have safe access to the entity in a different thread.Acquirable#acquire
will block the current thread until acquirableEntity
becomes accessible, and execute the consumer in the same thread once it is the case.AcquirableCollection<Player>
and you want to access safely all of the players it contains. You have multiple solutions, each having pros & cons.Acquirable<T>
objects and request for T
.