Skip to content

refactor(io)!: add context to IO.Open and IO.Remove - #2067

Draft
laskoviymishka wants to merge 1 commit into
apache:mainfrom
laskoviymishka:refactor/io-context-open-remove
Draft

laskoviymishka wants to merge 1 commit into
apache:mainfrom
laskoviymishka:refactor/io-context-open-remove

Conversation

@laskoviymishka

Copy link
Copy Markdown
Contributor

io.IO.Open and Remove now take context.Context, matching BulkRemovableIO.DeleteFiles. blobfs.FileIO.Remove forwards the caller context so deletes honor cancellation/deadlines. table.WithDeleteFunc now takes func(context.Context, string) error.

Breaking change: all IO implementations/callers must pass a context, and custom delete callbacks must update their signature.

Part of the v1.0 API cleanup in #2062.

`io.IO.Open` and `Remove` now take `context.Context`, matching `BulkRemovableIO.DeleteFiles`.
`blobfs.FileIO.Remove` forwards the caller context so deletes honor cancellation/deadlines.
`table.WithDeleteFunc` now takes `func(context.Context, string) error`.

Breaking change: all `IO` implementations/callers must pass a context, and custom delete callbacks must update their signature.

Part of the v1.0 API cleanup in apache#2062.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant