<!--
{
  "availability" : [
    "macOS: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FSKit",
  "identifier" : "/documentation/FSKit/FSBlockDeviceResource/asynchronousMetadataFlush()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "FSKit"
    ],
    "preciseIdentifier" : "c:objc(cs)FSBlockDeviceResource(im)asynchronousMetadataFlushWithError:"
  },
  "title" : "asynchronousMetadataFlush()"
}
-->

# asynchronousMetadataFlush()

Asynchronously flushes the resource’s buffer cache.

```
func asynchronousMetadataFlush() throws
```

## Discussion

This method schedules a flush of data previously written with [`delayedMetadataWriteFrom:startingAt:length:error:`](/documentation/FSKit/FSBlockDeviceResource/delayedMetadataWriteFrom:startingAt:length:error:) to the resource and returns immediately without blocking.
This method doesn’t wait to check the flush’s status.
If an error prevents the flush from being scheduled, the error is indicated by the in-out `error` parameter.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)