-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add error impl for streams (#4)
* feat: add error impl for stream/future closure This commit adds the implementation for error propagation during stream/future closure. When streams are closed on write, they have the option to send an error context that should be seen by the reader on the next read. Signed-off-by: Victor Adossi <[email protected]> * refactor: facilitate host read returning error context Signed-off-by: Victor Adossi <[email protected]> * fix: pass error context type for component through Signed-off-by: Victor Adossi <[email protected]> * fix: pass through error context type in more places Signed-off-by: Victor Adossi <[email protected]> * chore: improve invalid handle error messages Signed-off-by: Victor Adossi <[email protected]> * wip: clarify comments around global error context management Signed-off-by: Victor Adossi <[email protected]> * wip: finish up edge cases Signed-off-by: Victor Adossi <[email protected]> * chore: remove irrelevant comment Signed-off-by: Victor Adossi <[email protected]> * fix: remove unneeded ref translation Signed-off-by: Victor Adossi <[email protected]> * fix: remove unused err_ctx_ty Signed-off-by: Victor Adossi <[email protected]> * fix: comment regarding writer and error context Co-authored-by: Joel Dice <[email protected]> * fix: remove unused err_ctx_ty future/stream/flat_stream write Signed-off-by: Victor Adossi <[email protected]> --------- Signed-off-by: Victor Adossi <[email protected]> Co-authored-by: Joel Dice <[email protected]>
- Loading branch information
1 parent
d1596df
commit 4611d5c
Showing
6 changed files
with
519 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.