AutomaticComponentToolkit icon indicating copy to clipboard operation
AutomaticComponentToolkit copied to clipboard

Wrap function callbacks

Open robertgoss opened this issue 5 years ago • 1 comments
trafficstars

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.

robertgoss avatar Jul 16 '20 21:07 robertgoss

Hi @robertgoss, I just found an issue (#129) that might be directly related to your project. It would be great to hear your opinion about this.

alexanderoster avatar Jul 28 '20 07:07 alexanderoster