This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var promise = function(){ | |
| return new Promise(function(resolve, reject) { | |
| resolve(promise2('promise 1 Complete')); | |
| }); | |
| } | |
| var promise2 = function(value) { | |
| return new Promise(function(resolve, reject) { | |
| resolve(promise3('promise 2 Complete')); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var timer = null; | |
| var scrollEvent = function () { | |
| if(timer!=null) | |
| clearTimeout(timer); | |
| timer = setTimeout(function(){ | |
| console.log('hello'); | |
| }, 100); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace Threading | |
| { | |
| class Program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace WhoGroup.Schedulers | |
| { | |
| internal static class SchedulerHelper | |
| { |
NewerOlder