Page 97 - Nodejs 교과서 개정2판
P. 97

§ Ӓܿ     కझ௼৬ ݃੉௼۽కझ௼



              8BSOJOH ݃੉௼۽కझ௼੄ ੤ӈ ഐ୹

           process.nextTickਵ۽ ߉਷ ௒ߔ ೣࣻա resolveػ Promiseח ׮ܲ ੉߮౟ ܖ೐ীࢲ ؀ӝೞח ௒ߔ ೣࣻࠁ׮ب ݢ੷ प೯
           ؾפ׮  Ӓېࢲ ࠺زӝ ୊ܻܳ ೡ ٸ setImmediateࠁ׮ process.nextTickਸ ؊ ࢶഐೞח ѐߊ੗ب ੓णפ׮  ೞ૑݅ ੉۠
           ݃੉௼۽కझ௼ܳ ੤ӈ ഐ୹ೞѱ غݶ ੉߮౟ ܖ೐ח ׮ܲ ௒ߔ ೣࣻࠁ׮ ݃੉௼۽కझ௼ܳ ਋ࢶೞৈ ୊ܻೞ޲۽ ௒ߔ ೣٜࣻ

           ੉ प೯غ૑ ঋਸ ࣻب ੓णפ׮




          
                 QSPDFTT FYJU ௏٘
         प೯ ઺ੋ ֢٘ ೐۽ࣁझܳ ઙܐ೤פ׮  ࢲߡ ജ҃ীࢲ ੉ ೣࣻܳ ࢎਊೞݶ ࢲߡо ݥ୶޲۽ ౠࣻೠ ҃਋ܳ ઁ৻

         ೞҊח ࢲߡীࢲ ੜ ࢎਊೞ૑ ঋणפ׮  ೞ૑݅ ࢲߡ ৻੄ ة݀੸ੋ ೐۽Ӓ۔ীࢲח ࣻزਵ۽ ֢٘ܳ ݥ୶ӝ ਤ
         ೧ ࢎਊ೤פ׮


         setInterval۽ ߈ࠂغҊ ੓ח ௏٘ܳ process.exit()ਵ۽ ݥ୾ ࠁѷणפ׮

          exit.js
   92   93   94   95   96   97   98   99   100   101   102