Autodesk / Autodesk/AutomaticComponentToolkit

Wrap function callbacks

Open
#104 1 comment 0 reactions 1 assignee Claimed by @robertgoss View on GitHub
Dominant language
Go
Stars
53
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Currently function callbacks are passed directly over the interface as arguments.

This leads to 2 issues:
1. We cannot journal calls into these callbacks from within the implementation - which we would like to do in the future
2. This does not follow the hourglass isolation pattern as an exception thown in the callback might not be safely able to percolate in the implementations code.

To get around this we should wrap the function call backs we are passed from the binding in the implementation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.