performAsCurrentWithPendingUnitCount method

void performAsCurrentWithPendingUnitCount(
  1. int unitCount, {
  2. required ObjCBlock<Void Function()> usingBlock,
})

performAsCurrentWithPendingUnitCount:usingBlock:

Implementation

void performAsCurrentWithPendingUnitCount(
  int unitCount, {
  required objc.ObjCBlock<ffi.Void Function()> usingBlock,
}) {
  objc.checkOsVersionInternal(
    'NSProgress.performAsCurrentWithPendingUnitCount:usingBlock:',
    iOS: (false, (11, 0, 0)),
    macOS: (false, (10, 13, 0)),
  );
  _objc_msgSend_1i0cxyc(
    object$.ref.pointer,
    _sel_performAsCurrentWithPendingUnitCount_usingBlock_,
    unitCount,
    usingBlock.ref.pointer,
  );
}