As I understand it, you use import_fn to defer some operation from a plugin to the host by means of defining a host_fn, but I cannot seem to get this to work - I'd love to experiment a bit more with this and I'd really appreciate some docs or an example that combines the use of import_fn and host_fn - the way I imagine this to work:
As I understand it, you use
import_fn
to defer some operation from a plugin to the host by means of defining ahost_fn
, but I cannot seem to get this to work - I'd love to experiment a bit more with this and I'd really appreciate some docs or an example that combines the use ofimport_fn
andhost_fn
- the way I imagine this to work:plugin code:
app code: