I noticed that the analyticsTracker option of initPerfume is expected to be a void callback. It would be useful if it could accept a promise, WDYT?
Example
In my use case, I'm collecting data in IndexedDB using idb-keyval, which is a fully promisified library. It would be helpful if I could use await within the callback.
Motivation
I noticed that the
analyticsTracker
option ofinitPerfume
is expected to be a void callback. It would be useful if it could accept a promise, WDYT?Example
In my use case, I'm collecting data in IndexedDB using
idb-keyval
, which is a fully promisified library. It would be helpful if I could useawait
within the callback.