apps/files_external/3rdparty/icewind/smb/src/NotifyHandler.php
/**
	 * Listen actively to all incoming changes
	 *
	 * Note that this is a blocking process and will cause the process to block forever if not explicitly terminated
	 *
	 * @param callable $callback
	 */
Listen actively to all incoming changes
Note that this is a blocking process and will cause the process to block forever if not explicitly terminated

@param callable $callback
Listen actively to all incoming changes Note that this is a blocking process and will cause the process to block forever if not explicitly terminated @param callable $callback
public function listen($callback) {
		if ($this->listening) {
			$this->connection->read(function ($line) use ($callback) {
				return $callback($this->parseChangeLine($line));
			});
		}
	}
public function listen ( $ callback ) { if ( $ this -> listening ) { $ this -> connection -> read ( function ( $ line ) use ( $ callback ) { return $ callback ( $ this -> parseChangeLine ( $ line ) ) ; } ) ; } }
Listen actively to all incoming changes
 Note that this is a blocking process and will cause the process to block forever if not explicitly terminated
Listen actively to all incoming changes Note that this is a blocking process and will cause the process to block forever if not explicitly terminated