You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have such an API for simpler object return to a pool.
Fluid Syntax
// When an instance is disabled, it is returned to a pool.varinstance= m_Pool.Rent().ReturnOnDisable(m_Pool);// Attach OnDisableTrigger
Disposable pattern
vardisposable= m_Pool.Rent(outvar instance);// Return to a pool in callbacks such as object completion.
instance.OnCompleted =()=> disposable.Dispose();
The text was updated successfully, but these errors were encountered:
I would like to have such an API for simpler object return to a pool.
Fluid Syntax
Disposable pattern
The text was updated successfully, but these errors were encountered: