Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Early error checking and file name generation for FileSink #1430

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

glopesdev
Copy link
Member

@glopesdev glopesdev commented Jun 22, 2023

FileSink writers are used when file creation needs to be deferred until the first element of the observable sequence is provided (e.g. if opening the writer requires knowing the size of a video frame).

Previously, all checks on file name were deferred until this moment. However, for improved consistency with support for early binding of file name provided by #1377, this PR moves most of the checks earlier in the observable lifetime, so that it does not become necessary to wait until a value is finally produced to detect an error in the specified file name. For example, the arrival of the first element can take several hours for infrequent events and can be frustrating to find out only at that time that we forgot to provide a non-empty file name.

@glopesdev glopesdev added proposal Request for a new feature fix Pull request that fixes an issue labels Jun 22, 2023
@glopesdev glopesdev added this to the 2.8 milestone Jun 22, 2023
@glopesdev glopesdev merged commit 38f6bce into bonsai-rx:main Jun 22, 2023
2 checks passed
@glopesdev glopesdev deleted the filesink-improvements branch June 22, 2023 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue proposal Request for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant