Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryTake()

bool System.Collections.Immutable.SecureObjectPool< T, TCaller >.TryTake ( TCaller caller,
out SecurePooledObject< T >? item )
inline

Definition at line 33 of file SecureObjectPool.cs.

34 {
35 if (caller.PoolUserId != -1 && AllocFreeConcurrentStack<SecurePooledObject<T>>.TryTake(out item))
36 {
37 item.Owner = caller.PoolUserId;
38 return true;
39 }
40 item = null;
41 return false;
42 }

References System.item.