Documentation Language: Swift

Method

finalizeWriter(_:)

Finalizes and commits the writer’s content to its target.

@MainActor func finalizeWriter(_ writer: MTLWriter) async throws

Parameters

writer

The writer to finalize

Discussion

This method is called when a file block completes execution. The strategy should perform any necessary finalization (writing to disk, closing handles, etc.) and commit the writer’s accumulated content.