MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / ~AsyncProgressWorkerBase

Method ~AsyncProgressWorkerBase

napi-inl.h:6712–6718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6710
6711template <typename DataType>
6712inline AsyncProgressWorkerBase<DataType>::~AsyncProgressWorkerBase() {
6713 // Abort pending tsfn call.
6714 // Don't send progress events after we've already completed.
6715 // It's ok to call ThreadSafeFunction::Abort and ThreadSafeFunction::Release
6716 // duplicated.
6717 _tsfn.Abort();
6718}
6719
6720template <typename DataType>
6721inline void AsyncProgressWorkerBase<DataType>::OnAsyncWorkProgress(

Callers

nothing calls this directly

Calls 1

AbortMethod · 0.80

Tested by

no test coverage detected