 
 		return
 
+	###*
+	 * Resolve then with its promise.
+	 * @private
+	 * @param  {Yaku} p
+	 * @param  {Thenable} x
+	 * @param  {Function} xthen
+	###
 	resolveXthen = (p, x, xthen) ->
 		isResolved = false
 


		return

	resolvePromise = (self, state, value) ->
		return if self._state != $pending


	fnQueue = Array 1000
	fnQueueLen = 0

	###*
	 * Run all queued functions.
	 * @private
	###
	flush = ->
		i = 0
		while i < fnQueueLen
