Skip to content

non-throwing overloads for stream_file methods #261

@ashtum

Description

@ashtum

The following stream_file methods currently report failures exclusively by throwing std::system_error. It would be useful to provide non-throwing overloads that accept a trailing std::error_code& parameter, aligning with existing corosio APIs (e.g. local_endpoint) and following established Asio conventions.

file_stream::open(path, mode)
file_stream::size()
file_stream::resize(new_size)
file_stream::sync_data()
file_stream::sync_all()
file_stream::assign(handle)
file_stream::seek(offset, origin)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions