function dispatch( pkg, clbk ) {
	var slug;
	var opts;

	slug = 'stdlib-js/'+replace( pkg, '/', '-' );
	opts = {
		'token': ENV.GITHUB_TOKEN
	};
	console.log( 'Creating workflow dispatch events for `'+slug+'`.' );
	createWorkflowDispatch( slug, 'test.yml', opts, onTest );

	/**
	* Callback invoked upon creating a test workflow dispatch event.
	*
	* @private
	* @param {(Error|null)} error - encountered error
	* @param {Object} info - rate limit info
	* @returns {void}
	*/
	function onTest( error, info ) {
		var currentTime;
		var waitTime;
		if ( error ) {
			console.error( error );
		}
		console.log( 'Rate limit information: '+JSON.stringify( info ) );

		if ( info.remaining <= 1 ) {
			currentTime = new Date().getTime();
			waitTime = new Date( info.reset * 1000 ).getTime() - currentTime;
			return setTimeout( clbk, waitTime );
		}
		return clbk();
	}
}
Creates a workflow dispatch event in for the respective GitHub repository.

@private
@param {string} pkg - package name
@param {Function} clbk - callback function
@returns {void}