Gio.FileMonitor.prototype.cancel

function cancel(): Boolean {
    // Gjs wrapper for g_file_monitor_cancel()
}
  

Cancels a file monitor.

Returns

true if monitor was cancelled.