Disposes the resource. MUST be safe to call multiple times (idempotent). Returns a Future that completes once the resource is released.
Future<void> dispose();