Skip to content

Should FileDescriptor.closeAfter provide a FileDescriptor to the invoked closure? #54

@GeorgeLyon

Description

@GeorgeLyon

I've been wanting to write something like

let foo = try FileDescriptor
  .open("my-file", .readOnly)
  .closeAfter { fileDescriptor in
    /// do stuff with fileDescriptor
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions