{"id":306761,"date":"2020-07-10T15:01:05","date_gmt":"2020-07-10T15:01:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=306761"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=306761","title":{"rendered":"\u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0432 RxJava 3"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/simbirsoft\/blog\/510400\/\">\u0412\u0435\u0441\u043d\u043e\u0439 2020 \u0433\u043e\u0434\u0430 \u0432\u044b\u0448\u043b\u0430 \u0441\u0432\u0435\u0436\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 <a href=\"https:\/\/github.com\/ReactiveX\/RxJava\">RxJava<\/a> \u2013 RxJava 3. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0432 \u0447\u0435\u043c \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0441 RxJava 2 \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c. <\/p>\n<p>  \u041e\u0442\u043c\u0435\u0442\u0438\u043c, \u0447\u0442\u043e \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u043d\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Java 8, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u0441\u0442\u0430\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ig\/mf\/je\/igmfjeowzhve-yrjer5trmesbjq.png\"><a name=\"habracut\"><\/a><\/p>\n<p>  <i><b>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440:<\/b> \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 <a href=\"https:\/\/github.com\/ReactiveX\/RxJava\/wiki\/What&#39;s-different-in-3.0#api-changes\">\u043e\u0431\u0437\u043e\u0440\u0435 GitHub<\/a>, \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043c\u044b \u0434\u0435\u043b\u0438\u043c\u0441\u044f \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u043d\u0430\u0448\u0438\u0445 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043e\u0442 RxJava 3, \u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u043c \u043d\u0430 \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u2013 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0432\u044b\u0448\u043b\u0430 \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u043f\u043e\u043a\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0434\u044b \u043e\u0431\u0441\u0443\u0434\u0438\u0442\u044c)<\/i><\/p>\n<h3>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 RxJava 3<\/h3>\n<p>  \u0418\u0442\u0430\u043a, \u0447\u0442\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0432 <a href=\"https:\/\/github.com\/ReactiveX\/RxJava\/wiki\/What&#39;s-different-in-3.0\">RxJava 3<\/a>:<\/p>\n<ul>\n<li>\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Java \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0430 \u0434\u043e 8*;<\/li>\n<li>\u041f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0442\u0430\u043a\u0438\u0445 \u0444\u0438\u0447 \u044f\u0437\u044b\u043a\u0430, \u043a\u0430\u043a:<\/li>\n<\/ul>\n<p>   \u2014 Streams<br \/>   \u2014 Stream Collectors<br \/>   \u2014 Optional<br \/>   \u2014 CompletableFeature<\/p>\n<p>  *\u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f <b>Java8 API<\/b> \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043d\u044f\u0442\u044c minSDK \u0434\u043e 24 \u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<p>  \u0412 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0443\u0431\u0440\u0430\u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0442\u0430\u043a\u0438\u0445 \u0444\u0438\u0447, \u043a\u0430\u043a:<\/p>\n<ul>\n<li>java.time.Duration \u2013 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043e\u043a, \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u043e \u043d\u0430 time + unit;<\/li>\n<li>java.util.function \u2013 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043a\u0438\u0434\u0430\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043b\u0438\u0448\u043d\u044e\u044e \u201c\u0434\u0432\u0443\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u201d.<\/li>\n<\/ul>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dr\/nb\/xp\/drnbxp3sqydkupweluv9iilvdis.png\"><\/p>\n<p>  \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 2 \u0433\u0440\u0443\u043f\u043f\u044b:<\/p>\n<ol>\n<li>\u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f <\/li>\n<li>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f API <\/li>\n<\/ol>\n<p>  <\/p>\n<h3>\u041f\u043e\u0432\u0435\u0434\u0435\u043d\u0447\u0435\u0441\u043a\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/h3>\n<p>  <\/p>\n<ul>\n<li><b>\u0412\u0441\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b<\/b><\/li>\n<\/ul>\n<p>  \u0420\u0430\u043d\u0435\u0435 \u043e\u0434\u043d\u0430 \u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c RxJava 2 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u0430\u0441\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u0435\u0439\u0441\u0430\u0445 \u043e\u0448\u0438\u0431\u043a\u0438 \u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u0442\u0435\u0440\u044f\u0442\u044c\u0441\u044f \u0438 \u043d\u0435 \u0431\u044b\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b. \u0422\u0435\u043f\u0435\u0440\u044c \u0432 RxJava 3 \u043e\u0442\u043f\u0438\u0441\u043a\u0430 \u043e\u0442 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443, \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u043e\u043a\u0438\u0434\u044b\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u043e\u0431\u0449\u0438\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043e\u0448\u0438\u0431\u043e\u043a \u0447\u0435\u0440\u0435\u0437 RxJavaPlugins.onError()<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/3v\/bh\/zc\/3vbhzckzsk1j9irjfezjbslyrxo.png\"><\/p>\n<ul>\n<li><b>Connectable.reset()<\/b><\/li>\n<\/ul>\n<p>  \u0412 RxJava 2 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0433\u043e\u0440\u044f\u0447\u0438\u043c\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u043c\u0438: \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 ConnectableObservable \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435 terminate.<\/p>\n<p>  \u0412 RxJava 3 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u0431\u0440\u043e\u0441\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f ConnectableObservable \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 reset(), \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043d\u043e\u0432\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0430\u043c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/q6\/t0\/ic\/q6t0icndn_sj47ak1f26usqnoyu.png\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hr\/nx\/we\/hrnxwes3au0ky-ofstfoy0qw4bk.png\"><\/p>\n<ul>\n<li><b>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c Flowable.publish \u043d\u0430 \u043f\u0430\u0443\u0437\u0443<\/b><\/li>\n<\/ul>\n<p>  \u0412 RxJava 3 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 Flowable.publish \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u043d\u0430 \u043f\u0430\u0443\u0437\u0443, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kh\/io\/tm\/khiotmeo-itj_uv40fd4es6ypgy.png\"><\/p>\n<ul>\n<li><b>Processor.offer() null-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440<\/b><\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0432\u044b\u0437\u0432\u0430\u0442\u044c PublishProcessor.offer(), BehaviourProcessor.offer() \u0438\u043b\u0438 MulticastProcessor.offer() \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c null, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u044b\u0431\u0440\u043e\u0441 NullPointerException \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 onError-\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ol\/3e\/in\/ol3einx8f3beqdzr1sy9llr62jo.png\"><\/p>\n<ul>\n<li><b>CompositeException.getCause()<\/b><\/li>\n<\/ul>\n<p>  \u0420\u0430\u043d\u0435\u0435 \u0432 RxJava 2 \u043c\u0435\u0442\u043e\u0434 getCause() \u0438\u043d\u043e\u0433\u0434\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0433\u0440\u0443\u0436\u0430\u043b \u043f\u0430\u043c\u044f\u0442\u044c, \u0432\u044b\u0437\u044b\u0432\u0430\u044f \u043c\u0435\u0442\u043e\u0434 initCause \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e, \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439.<\/p>\n<p>  \u0412 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u0438\u0437\u043d\u0443\u0442\u0440\u0438 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u0432\u0438\u0434\u0435 \u0441\u0442\u0435\u043a\u0442\u0440\u0435\u0439\u0441\u0430 \u2013 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0441\u0442\u0440\u043e\u043a.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pn\/s6\/fl\/pns6flopnbiassnnkyolmvofa9i.png\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cs\/hc\/hv\/cshchvgfiiidmi-r3wwcllmciqe.png\"><\/p>\n<ul>\n<li><b>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430<\/b><\/li>\n<\/ul>\n<p>  \u041f\u0440\u0438 \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u043d\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u0431\u0443\u0434\u0443\u0442 \u0431\u0440\u043e\u0441\u0430\u0442\u044c IllegalArgumentException \u0432\u043c\u0435\u0441\u0442\u043e IndexOutOfBoundsException:<\/p>\n<p>   \u2014 skip<br \/>   \u2014 skipLast<br \/>   \u2014 takeLast<br \/>   \u2014 takeLastTimed<\/p>\n<ul>\n<li><b>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u043b\u044f fromX()<\/b><\/li>\n<\/ul>\n<p>  \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 fromAction() \u0438 fromRunnable() \u0441\u0442\u0430\u043b\u0438 \u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u044b\u043c\u0438 \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438 fromX()-\u0432\u044b\u0437\u043e\u0432\u0430\u043c\u0438. \u041a\u043e\u043b\u0431\u0435\u043a\u0438 fromRunnable() \u0438 fromAction() \u0442\u0435\u043f\u0435\u0440\u044c \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043a\u0440\u044b\u0442\u044b \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u0435. \u0412 RxJava 2 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u044d\u0442\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u043f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u043b\u0430 \u043b\u044f\u043c\u0431\u0434\u044b, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u0439 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1k\/gz\/ao\/1kgzaoa7d12tcdxdqh_jjao58lu.png\"><\/p>\n<ul>\n<li><b>\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u043e\u0447\u0438\u0449\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 using()<\/b><\/li>\n<\/ul>\n<p>  \u0423 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 using() \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u0442\u043e, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0438\u0449\u0435\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0440\u0435\u0441\u0443\u0440\u0441 (true \u2013 \u0434\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f, false \u2013 \u043f\u043e\u0441\u043b\u0435). \u0412 \u0440\u0430\u043d\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f, \u0438 \u0440\u0435\u0441\u0443\u0440\u0441 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0447\u0438\u0449\u0430\u043b\u0441\u044f \u0434\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u043d\u043e \u0432 RxJava 3 \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/mv\/5n\/vp\/mv5nvpnoxz02q6kbwbqk0perzqm.png\"><\/p>\n<h3>\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f API<\/h3>\n<p>  <\/p>\n<ul>\n<li>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0430 \u0441 Exception \u0434\u043e Throwable<\/li>\n<\/ul>\n<p>  <\/p>\n<ul>\n<li>\u041d\u043e\u0432\u044b\u0435 \u0442\u0438\u043f\u044b: Supplier<\/li>\n<\/ul>\n<p>  \u0412 RxJava 3 \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0441 Exception \u0434\u043e Throwable \u0432\u0432\u0435\u0434\u0435\u043d \u043d\u043e\u0432\u044b\u0439 \u0442\u0438\u043f Supplier \u2013 \u0430\u043d\u0430\u043b\u043e\u0433 Callable, \u043d\u043e \u0441 throws Throwable<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qr\/3y\/ia\/qr3yia6h9kigfjn5sffcnfnemre.png\"><\/p>\n<ul>\n<li>\u0412 RxJava 3 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0431\u044b\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u044b<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bk\/1e\/ak\/bk1eakx9v_427l0gwuql5ojsrs0.png\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/v6\/f3\/zp\/v6f3zpdpo3jyviygm_am6bzyrek.png\"><\/p>\n<ul>\n<li>\u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b<\/li>\n<\/ul>\n<p>  \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e RxJava3 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c Java8 API, \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u043b\u0430\u0441\u0441\u0430\u043c-\u0444\u0430\u0431\u0440\u0438\u043a\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e \u043d\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435: \u043c\u0435\u0442\u043e\u0434\u044b \u044d\u0442\u0438\u0445 \u0444\u0430\u0431\u0440\u0438\u043a \u0441\u0442\u0430\u043b\u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441\u0430\u043c\u043e\u0433\u043e Disposable.<\/p>\n<p>  \u041a\u0430\u043a \u0431\u044b\u043b\u043e \u0440\u0430\u043d\u0435\u0435:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fl\/fi\/fd\/flfifdrq3jbhvgkvn75whwrmr-k.png\"><\/p>\n<p>  \u0421\u0442\u0430\u043b\u043e:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kz\/1x\/ln\/kz1xlnt2ris-rvjlt1aa8awglqw.png\"><\/p>\n<ul>\n<li>\u0421 \u0446\u0435\u043b\u044c\u044e \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f warnings \u043a\u043b\u0430\u0441\u0441 DisposableContainer, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 CompositeDisposable, \u0441\u0434\u0435\u043b\u0430\u043d \u0447\u0430\u0441\u0442\u044c\u044e \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e API<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0432 RxJava 2 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0434\u0438\u0438, \u0430 \u0432 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043e\u043d\u0438 \u0441\u0442\u0430\u043b\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438:<\/li>\n<\/ul>\n<p>  <b>Flowable promotions<\/b><\/p>\n<p>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Flowable.html#dematerialize-io.reactivex.rxjava3.functions.Function-\">dematerialize(Function)<\/a><\/p>\n<p>  <b>Observable promotions<\/b><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#dematerialize-io.reactivex.rxjava3.functions.Function-\">dematerialize(Function)<\/a><\/p>\n<p>  <b>Maybe promotions<\/b><\/p>\n<p>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#doOnTerminate-io.reactivex.rxjava3.functions.Action-\">doOnTerminate(Action)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#materialize--\">materialize()<\/a><\/p>\n<p>  <b>Single promotions<\/b><\/p>\n<p>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#dematerialize-io.reactivex.rxjava3.functions.Function-\">dematerialize(Function)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#materialize--\">materialize()<\/a><\/p>\n<p>  <b>Complectable promotions<\/b><\/p>\n<p>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#delaySubscription-long-java.util.concurrent.TimeUnit-\">delaySubscription(long, TimeUnit)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#delaySubscription-long-java.util.concurrent.TimeUnit-io.reactivex.rxjava3.core.Scheduler-\">delaySubscription(long, TimeUnit, Scheduler)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#materialize--\">materialize()<\/a><\/p>\n<ul>\n<li>\u0412 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#concatMap-io.reactivex.rxjava3.functions.Function-int-io.reactivex.rxjava3.core.Scheduler-\">concatMap()<\/a> \u0432 \u0446\u0435\u043b\u044f\u0445 \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438 \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d Scheduler\u2019\u043e\u043c<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/7e\/ka\/i-\/7ekai-jfg3zlovf6t20kt6jfiyi.png\"><\/p>\n<ul>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043a\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Flowable.html#blockingForEach-io.reactivex.rxjava3.functions.Consumer-\">blockingForEach()<\/a> \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u0443\u0444\u0435\u0440\u0430<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/lf\/mf\/58\/lfmf58mxbwssxpkfokpijb_ek40.png\"><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Flowable.html#blockingSubscribe--\">blockingSubscribe()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Maybe, Single \u0438 Completable<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/nh\/ut\/cu\/nhutcufekncdtq3wepwogsrr7x0.png\"><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#onErrorComplete--\">onErrorComplete()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u044f\u0442\u0438 \u0442\u0438\u043f\u0430\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445<\/li>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#onErrorResumeWith-io.reactivex.rxjava3.core.CompletableSource-\">onErrorResumeWith()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Completable<\/li>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#retryUntil-io.reactivex.rxjava3.functions.BooleanSupplier-\">retryUntil()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Single \u0438 Completable<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hu\/m0\/5v\/hum05v4qibb4xs9jf3zpvglbmuu.png\"><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#switchOnNext-org.reactivestreams.Publisher-\">switchOnNext()<\/a> \u0438 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#switchOnNextDelayError-org.reactivestreams.Publisher-\">switchOnNextDelayError()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Maybe, Single \u0438 Completable<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zm\/py\/hr\/zmpyhr5m69habq7ekjcqfkqba_c.png\"><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#dematerialize-io.reactivex.rxjava3.functions.Function-\">dematerialize()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Maybe<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qi\/1v\/ix\/qi1vixe_csclobhd0iwmqjhea3k.png\"><\/p>\n<ul>\n<li>\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u0435\u043b \u0430\u043f\u0434\u0435\u0439\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 fromX()-\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/yp\/j8\/do\/ypj8do2rghez3rcwdrmvuls1r5w.png\"><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#timeInterval--\">timeInterval()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Maybe \u0438 Single<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rq\/ti\/nn\/rqtinnq8ejy95tjcunrnplw9kv0.png\"><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#toFuture--\">toFuture()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Maybe \u0438 Completable<\/li>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#ofType-java.lang.Class-\">ofType()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Maybe \u0438 Single<\/li>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#doOnLifecycle-io.reactivex.rxjava3.functions.Consumer-io.reactivex.rxjava3.functions.Action-\">doOnLifecycle()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Maybe, Single \u0438 Completable<\/li>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 concatMapX() (X \u2013 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0438\u043f \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445) \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Maybe \u0438 Single<\/li>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#concatDelayError-java.lang.Iterable-\">concatDelayError()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Maybe, Single \u0438 Completable<\/li>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#mergeArray-io.reactivex.rxjava3.core.SingleSource...-\">mergeArray()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Single<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/0z\/mj\/nw\/0zmjnwwakwkgy0glk4rqalxyape.png\"><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#startWith-io.reactivex.rxjava3.core.CompletableSource-\">startWith()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u044f\u0442\u0438 \u0442\u0438\u043f\u0430\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445<\/li>\n<\/ul>\n<p>  <b>Flowable<\/b><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Flowable.html#startWith-io.reactivex.rxjava3.core.CompletableSource-\">startWith(MaybeSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Flowable.html#startWith-io.reactivex.rxjava3.core.SingleSource-\">startWith(SingleSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Flowable.html#startWith-io.reactivex.rxjava3.core.CompletableSource-\">startWith(ComplectableSource)<\/a><\/p>\n<p>  <b>Observable<\/b><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#startWith-io.reactivex.rxjava3.core.MaybeSource-\">startWith(MaybeSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#startWith-io.reactivex.rxjava3.core.SingleSource-\">startWith(SingleSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#startWith-io.reactivex.rxjava3.core.CompletableSource-\">startWith(ComplectableSource)<\/a><\/p>\n<p>  <b>Maybe<\/b><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#startWith-org.reactivestreams.Publisher-\">startWith(Publisher)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#startWith-io.reactivex.rxjava3.core.ObservableSource-\">startWith(ObservableSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#startWith-io.reactivex.rxjava3.core.MaybeSource-\">startWith(MaybeSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#startWith-io.reactivex.rxjava3.core.SingleSource-\">startWith(SingleSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#startWith-io.reactivex.rxjava3.core.CompletableSource-\">startWith(ComplectableSource)<\/a><\/p>\n<p>  <b>Single<\/b><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#startWith-org.reactivestreams.Publisher-\">startWith(Publisher)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#startWith-io.reactivex.rxjava3.core.ObservableSource-\">startWith(ObservableSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#startWith-io.reactivex.rxjava3.core.MaybeSource-\">startWith(MaybeSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#startWith-io.reactivex.rxjava3.core.SingleSource-\">startWith(SingleSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#startWith-io.reactivex.rxjava3.core.CompletableSource-\">startWith(ComplectableSource)<\/a><\/p>\n<p>  <b>Complectable<\/b><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#startWith-io.reactivex.rxjava3.core.MaybeSource-\">startWith(MaybeSource)<\/a><br \/>  <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#startWith-io.reactivex.rxjava3.core.SingleSource-\">startWith(SingleSource)<\/a><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#onErrorReturn-io.reactivex.rxjava3.functions.Function-\">onErrorReturn()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Completable<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/kh\/3z\/bv\/kh3zbvy0ms2pd1upam9wnf-qnyo.png\"><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#safeSubscribe-io.reactivex.rxjava3.core.MaybeObserver-\">safeSubscribe()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Maybe, Single \u0438 Completable<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/97\/qb\/vx\/97qbvxalcy2ftw_ddstg5jhds-a.png\"><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#flatMap-io.reactivex.rxjava3.functions.Function-\">flatMap()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Single<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/l3\/5l\/df\/l35ldfslglpf1n1xmgbgjnde7ee.png\"><\/p>\n<ul>\n<li>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#concatEager-java.lang.Iterable-\">concatEager()<\/a> \u0438 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#concatEagerDelayError-java.lang.Iterable-\">concatEagerDelayError()<\/a> \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Flowable, Observable, Maybe \u0438 Single<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#fromSupplier-io.reactivex.rxjava3.functions.Supplier-\">fromSupplier()<\/a> \u0432\u043e \u0432\u0441\u0435 \u043f\u044f\u0442\u044c \u0442\u0438\u043f\u043e\u0432 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445<\/li>\n<\/ul>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/iu\/km\/i4\/iukmi4vcsziyx2si3b-pfhkjyuu.png\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sh\/md\/4v\/shmd4vkcql2ih9vegewjpdozo18.png\"><\/p>\n<h4>\u041d\u043e\u0432\u043e\u0435 \u0441 Java8<\/h4>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043d\u043e\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#fromOptional-java.util.Optional-\">fromOptional()<\/a> \u0434\u043b\u044f Flowable, Observable \u0438 Maybe<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qp\/3h\/we\/qp3hwet2iodo2rtd7hmijairpdg.png\"><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043d\u043e\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#fromStream-java.util.stream.Stream-\">fromStream()<\/a> \u0434\u043b\u044f Flowable \u0438 Observable<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pz\/xh\/jj\/pzxhjjkfwi2ejlwnggxkuz4crz0.png\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/t7\/qh\/l0\/t7qhl0bnuxc-b4f3jmngfxds-hy.png\"><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043d\u043e\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#fromCompletionStage-java.util.concurrent.CompletionStage-\">fromCompletionStage()<\/a> \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u044f\u0442\u0438 \u0442\u0438\u043f\u043e\u0432 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tb\/oz\/ng\/tbozngbmeev7t78ugrph-o3o2gg.png\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/s9\/ku\/bg\/s9kubg4pkvpxwyj4oxmpbxm7fvc.png\"><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043d\u043e\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#mapOptional-io.reactivex.rxjava3.functions.Function-\">mapOptional()<\/a> \u0434\u043b\u044f Flowable, Observable, Maybe \u0438 Single. \u041e\u043d \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e non-empty \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/gh\/p9\/vh\/ghp9vhzokbw8mpyvztu-sq5jiy4.png\"><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043d\u043e\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#blockingStream--\">blockingStream()<\/a> \u0434\u043b\u044f Flowable \u0438 Observable. \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0442\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0432\u0438\u0434\u0435 stream, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c stream \u043f\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044e \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0443\u0442\u0435\u0447\u0435\u043a<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1x\/rh\/pl\/1xrhplnwcfd_wudgxkslhdljpou.png\"><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#flatMapStream-io.reactivex.rxjava3.functions.Function-\">flatMapStream()<\/a> \u0438 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#concatMapStream-io.reactivex.rxjava3.functions.Function-\">concatMapStream()<\/a> \u0434\u043b\u044f Flowable \u0438 Observable \u2013 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 item \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 stream<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ic\/pt\/ob\/icptobpgtzv41r0ejpuwpbpzeti.png\"><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#flattenStreamAsFlowable-io.reactivex.rxjava3.functions.Function-\">flattenStreamAsFlowable()<\/a> \u0438 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#flattenStreamAsObservable-io.reactivex.rxjava3.functions.Function-\">flattenStreamAsObservable()<\/a> \u0434\u043b\u044f Maybe \u0438 Single \u2013 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b flatMapStream() \u0434\u043b\u044f Observable \u0438 Flowable<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/27\/w0\/-f\/27w0-fcikyfkgjbkpyrjmlivsee.png\"><\/p>\n<h4>\u0427\u0442\u043e \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043e<\/h4>\n<p>  <\/p>\n<ul>\n<li>\u0412\u043c\u0435\u0441\u0442\u043e startWith() \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#concatMapStream-io.reactivex.rxjava3.functions.Function-\">startWithArray()<\/a>, <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#startWithIterable-java.lang.Iterable-\">startWithIterable()<\/a>, <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#startWithItem-T-\">startWithItem()<\/a><\/li>\n<li>\u0412\u043c\u0435\u0441\u0442\u043e onErrorResumeNext() \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#onErrorResumeWith-io.reactivex.rxjava3.core.ObservableSource-\">onErrorResumeWith()<\/a><\/li>\n<li>\u0412\u043c\u0435\u0441\u0442\u043e zipIterable() \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#zip-java.lang.Iterable-io.reactivex.rxjava3.functions.Function-\">zip()<\/a><\/li>\n<li>\u0412\u043c\u0435\u0441\u0442\u043e combineLatest() (\u0441 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c-\u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c) \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#combineLatestArray-io.reactivex.rxjava3.core.ObservableSource:A-io.reactivex.rxjava3.functions.Function-\">combineLatestArray()<\/a>, <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#combineLatestArrayDelayError-io.reactivex.rxjava3.core.ObservableSource:A-io.reactivex.rxjava3.functions.Function-\">combineLatestArrayDelayError()<\/a><\/li>\n<li>\u0412\u043c\u0435\u0441\u0442\u043e Single.equals() \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#sequenceEqual-io.reactivex.rxjava3.core.SingleSource-io.reactivex.rxjava3.core.SingleSource-\">sequenceEqual(SingleSource, SingleSource)<\/a><\/li>\n<li>\u0412\u043c\u0435\u0441\u0442\u043e Maybe.flatMapSingleElement() \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#flatMapSingle-io.reactivex.rxjava3.functions.Function-\">Maybe.flatMapSingle()<\/a><\/li>\n<li>\u0412\u043c\u0435\u0441\u0442\u043e Callable \u2013 Supplier (\u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043b\u044f\u043c\u0431\u0434 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f)<\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u0427\u0442\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u043e \u0438\u0437 API<\/h4>\n<p>  Maybe.toSingle(), \u0437\u0430\u043c\u0435\u043d\u0430 \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#defaultIfEmpty-T-\">Maybe.defaultIfEmpty()<\/a><br \/>  subscribe(\u2026, \u2026, \u2026, ), \u0437\u0430\u043c\u0435\u043d\u0430 \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Maybe.html#doOnSubscribe-io.reactivex.rxjava3.functions.Consumer-\">doOnSubscribe()<\/a><br \/>  Single.toCompletable(), \u0437\u0430\u043c\u0435\u043d\u0430 \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#ignoreElement--\">Single.ignoreElement()<\/a><br \/>  Completable.blockingGet(), \u0437\u0430\u043c\u0435\u043d\u0430 \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Completable.html#blockingAwait--\">Completable.blockingAwait()<\/a><br \/>  replay(Scheduler), \u0437\u0430\u043c\u0435\u043d\u0430 \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Single.html#observeOn-io.reactivex.rxjava3.core.Scheduler-\">observeOn(Scheduler)<\/a><br \/>  dematerialize(), \u0437\u0430\u043c\u0435\u043d\u0430 \u2013 <a href=\"http:\/\/reactivex.io\/documentation\/operators\/serialize.html\">deserialize(Function)<\/a><br \/>  onExceptionResumeNext(), \u0437\u0430\u043c\u0435\u043d\u0430 \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#onErrorResumeNext-io.reactivex.rxjava3.functions.Function-\">onErrorResumeNext(Function)<\/a><br \/>  combineLatest() (\u0441 vararg-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c), \u0437\u0430\u043c\u0435\u043d\u0430 \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#combineLatestArray-io.reactivex.rxjava3.core.ObservableSource:A-io.reactivex.rxjava3.functions.Function-\">combineLatestArray()<\/a><br \/>  fromFuture() (\u0441 Scheduler-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c), \u0437\u0430\u043c\u0435\u043d\u0430 \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#subscribeOn-io.reactivex.rxjava3.core.Scheduler-\">subscribeOn()<\/a><br \/>  concatMapIterable() (\u0441 buffer-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c), \u0437\u0430\u043c\u0435\u043d\u0430 \u2013 <a href=\"http:\/\/reactivex.io\/RxJava\/3.x\/javadoc\/io\/reactivex\/rxjava3\/core\/Observable.html#concatMapIterable-io.reactivex.rxjava3.functions.Function-\">concatMapIterable(Function)<\/a><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0438\u0437 TestSubscriber \u0438 TestObserver \u0443\u0434\u0430\u043b\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ki\/li\/bl\/kiliblizvfarrsl_wwenjgohiuw.png\"><\/p>\n<h3>\u041a\u0430\u043a \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/h3>\n<p>  \u041c\u043d\u043e\u0433\u0438\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043e\u0442\u043c\u0435\u0447\u0430\u044e\u0442, \u0447\u0442\u043e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u0441 RxJava 2 \u043d\u0430 RxJava 3 \u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u0440\u0443\u0434\u043e\u0435\u043c\u043a\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u0414\u043b\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: <\/p>\n<ul>\n<li>\u0438\u043c\u0435\u0442\u044c \u0443 \u0441\u0435\u0431\u044f \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043e\u0431\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438;<\/li>\n<li>\u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u0443\u044e \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u043d\u0430 RxJava 3, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e <a href=\"https:\/\/github.com\/akarnokd\/RxJavaBridge#rxjavabridge\">\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443<\/a>.<\/li>\n<\/ul>\n<p>  \u0418\u0442\u0430\u043a, \u043a\u0430\u043a \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<ul>\n<li>\u0410\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 API \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438 \u0442\u0435\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 RxJava 2, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043f\u043e\u0434\u0432\u0435\u0440\u0436\u0435\u043d\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044e.<\/li>\n<li>\u0412\u0430\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0432\u0441\u0435 \u0435\u0449\u0435 \u201c\u0441\u0438\u0434\u0438\u0442\u201d \u043d\u0430 RxJava 2. \u0414\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c <a href=\"https:\/\/github.com\/akarnokd\/RxJavaBridge\">RxJavaBridge<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u044f\u0447\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442.<\/li>\n<li>\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Retrofit \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0442\u044f\u043d\u0443\u0442\u044c <a href=\"https:\/\/github.com\/akarnokd\/RxJavaRetrofitAdapter\">RxJava3CallAdapterFactory<\/a> \u0438\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0444\u0430\u0431\u0440\u0438\u043a\u0443 \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043c\u0430\u043f\u043f\u0438\u043d\u0433\u0430 \u043e\u0442\u0432\u0435\u0442\u0430.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438, \u0447\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0432 RxJava 3. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u2014 \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c? <\/p>\n<p>  RxJava 3 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0435 API. \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043d\u0435 \u0431\u044b\u043b\u043e, \u0432 \u0446\u0435\u043b\u043e\u043c \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e. \u0421\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u0441\u0438\u043b\u0438\u0439, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432\u0441\u0435 \u0435\u0449\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0441 RxJava 2, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Java8 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043d\u044f\u0442\u044c minSDK \u0434\u043e 24 \u0432\u0435\u0440\u0441\u0438\u0438. \u0412 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0445 \u0435\u0441\u0442\u044c \u0438 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Kotlin Coroutines.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e RxJava 2 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c \u201c\u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f\u201d, \u0438 \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0438\u0437 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0433\u0444\u0438\u043a\u0441\u044b. \u041e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f 28 \u0444\u0435\u0432\u0440\u0430\u043b\u044f 2021 \u0433\u043e\u0434\u0430. <\/p>\n<p>  <b>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u041d\u0430\u0434\u0435\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0431\u044b\u043b \u0432\u0430\u043c \u043f\u043e\u043b\u0435\u0437\u0435\u043d. <\/b><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/simbirsoft\/blog\/510400\/\"> https:\/\/habr.com\/ru\/company\/simbirsoft\/blog\/510400\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/simbirsoft\/blog\/510400\/\">\u0412\u0435\u0441\u043d\u043e\u0439 2020 \u0433\u043e\u0434\u0430 \u0432\u044b\u0448\u043b\u0430 \u0441\u0432\u0435\u0436\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 <a href=\"https:\/\/github.com\/ReactiveX\/RxJava\">RxJava<\/a> \u2013 RxJava 3. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0432 \u0447\u0435\u043c \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0441 RxJava 2 \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c. <\/p>\n<p>  \u041e\u0442\u043c\u0435\u0442\u0438\u043c, \u0447\u0442\u043e \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u043d\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Java 8, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u0441\u0442\u0430\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ig\/mf\/je\/igmfjeowzhve-yrjer5trmesbjq.png\"><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-306761","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/306761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=306761"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/306761\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=306761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=306761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=306761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}