You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fix would be either to declare the 'x lifetime in emit_test_signal function in the CXX bridge.
Alternatively we could try removing the lifetime from the CXX Bridge, as that should be able to be deferred.
Furthermore, the emit function may cause problems, as it's defined as:
pub fn emit(self: Pin<&mut Self>, signal: Signal) {
match signal {
Signal::TestSignal { argument } => self.emit_test_signal(emit),
}
}
As of #281, Signals will be emitted immediately, which theoretically makes dealing with references much easier.
One can easily imagine an API like this:
This however, doesn't work, even in #281.
This is caused by this generated code:
The fix would be either to declare the
'x
lifetime in emit_test_signal function in the CXX bridge.Alternatively we could try removing the lifetime from the CXX Bridge, as that should be able to be deferred.
Furthermore, the
emit
function may cause problems, as it's defined as:But it may have to be defined as:
The text was updated successfully, but these errors were encountered: