{"id":910,"date":"2025-11-05T03:32:04","date_gmt":"2025-11-05T03:32:04","guid":{"rendered":"https:\/\/nurlandroid.com\/?p=910"},"modified":"2025-11-05T03:32:05","modified_gmt":"2025-11-05T03:32:05","slug":"%d1%87%d1%82%d0%be-%d1%82%d0%b0%d0%ba%d0%be%d0%b5-coroutine-context","status":"publish","type":"post","link":"https:\/\/nurlandroid.com\/?p=910","title":{"rendered":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Coroutine Context?"},"content":{"rendered":"\n<p><code>CoroutineContext<\/code> \u2014 \u044d\u0442\u043e <strong>\u043d\u0430\u0431\u043e\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0449\u0438\u0445 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b<\/strong>. \u041e\u043d \u043b\u0435\u0436\u0438\u0442 \u0432 \u043e\u0441\u043d\u043e\u0432\u0435 \u0440\u0430\u0431\u043e\u0442\u044b <strong>\u0432\u0441\u0435\u0445 \u043a\u043e\u0440\u0443\u0442\u0438\u043d <\/strong>\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041d\u0430 \u043a\u0430\u043a\u043e\u043c <strong>\u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440\u0435<\/strong> (\u043f\u043e\u0442\u043e\u043a\u0435) \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u0430<\/li>\n\n\n\n<li>\u041a \u043a\u0430\u043a\u043e\u043c\u0443 <strong><code>Job<\/code><\/strong> \u043e\u043d\u0430 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 (\u0434\u043b\u044f \u043e\u0442\u043c\u0435\u043d\u044b \u0438 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438)<\/li>\n\n\n\n<li>\u0415\u0441\u0442\u044c \u043b\u0438 <strong>\u0438\u043c\u044f<\/strong> \u0434\u043b\u044f \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (<code>CoroutineName<\/code>)<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 <code>CoroutineContext<\/code><\/h4>\n\n\n\n<p>&#171;\u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c&#187; <code>CoroutineContext<\/code> \u2014 \u044d\u0442\u043e <strong>\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/strong>, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 <strong>\u043d\u0435\u0447\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0433\u043e Map&lt;Key, Element><\/strong>. \u041e\u043d \u0443\u0441\u0442\u0440\u043e\u0435\u043d \u043a\u0430\u043a \u0446\u0435\u043f\u043e\u0447\u043a\u0430 <strong>Element<\/strong>-\u043e\u0432. \u041a\u0430\u0436\u0434\u044b\u0439 <code>Element<\/code> \u2014 \u044d\u0442\u043e <strong>\u043e\u0434\u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Dispatcher<\/code> &#8212; \u0437\u0430\u0434\u0430\u0435\u0442 \u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440 \u043f\u043e\u0442\u043e\u043a\u043e\u0432(\u043f\u0443\u043b\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u043e\u0432), \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0437\u0430\u0434\u0430\u0447\u0438.<\/li>\n\n\n\n<li><code>Job<\/code> &#8212; \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e, \u0441\u0442\u0430\u0442\u0443\u0441 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0438 \u043e\u0442\u043c\u0435\u043d\u0443.<\/li>\n\n\n\n<li><code>CoroutineName<\/code> &#8212; \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0438\u043c\u044f \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b (\u0434\u043b\u044f \u043b\u043e\u0433\u043e\u0432 \u0438 \u0434\u0435\u0431\u0430\u0433\u0430).<\/li>\n\n\n\n<li><code>ExceptionHandler<\/code> &#8212; \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0435 \u043e\u0442\u043b\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439<\/li>\n<\/ul>\n\n\n\n<p>\u0412\u0441\u0435 \u043e\u043d\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 <code>CoroutineContext.Element<\/code>, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0439 <code>Key<\/code><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CoroutineContext \u2014 \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0449\u0438\u0445 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u0443\u0442\u0438\u043d\u044b. \u041e\u043d \u043b\u0435\u0436\u0438\u0442 \u0432 \u043e\u0441\u043d\u043e\u0432\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0441\u0435\u0445 \u043a\u043e\u0440\u0443\u0442\u0438\u043d \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442: \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 CoroutineContext &#171;\u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c&#187; CoroutineContext \u2014 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u043d\u0435\u0447\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0438\u043c\u043c\u0443\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0433\u043e Map&lt;Key, Element>. \u041e\u043d \u0443\u0441\u0442\u0440\u043e\u0435\u043d \u043a\u0430\u043a \u0446\u0435\u043f\u043e\u0447\u043a\u0430 Element-\u043e\u0432. \u041a\u0430\u0436\u0434\u044b\u0439 Element \u2014 \u044d\u0442\u043e \u043e\u0434\u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430: \u0412\u0441\u0435 \u043e\u043d\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 CoroutineContext.Element, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0439 Key<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,23],"tags":[],"class_list":["post-910","post","type-post","status-publish","format-standard","hentry","category-android","category-coroutines"],"_links":{"self":[{"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/posts\/910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=910"}],"version-history":[{"count":1,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/posts\/910\/revisions"}],"predecessor-version":[{"id":911,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=\/wp\/v2\/posts\/910\/revisions\/911"}],"wp:attachment":[{"href":"https:\/\/nurlandroid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nurlandroid.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}