class OpaqueMemoryResource implements AutoCloseable {

	@Override
	public void close() throws Exception {
		if (closed.compareAndSet(false, true)) {
			disposer.run();
		}
	}

	public  OpaqueMemoryResource(T resourceHandle, long size, ThrowingRunnable<Exception> disposer);

}