Resource<T> constructor
Resource<T> (
- CreateInstance<
T> _create, { - DisposeInstance<
T> ? dispose, - BeforeExit? beforeExit,
Implementation
Resource(this._create, {DisposeInstance<T>? dispose, BeforeExit? beforeExit})
: _userDispose = dispose,
_userBeforeExit = beforeExit;