<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:54:10 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-1259] Ensure Async cursors can be cancelled</title>
                <link>https://jira.mongodb.org/browse/JAVA-1259</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Currently the way to stop iterating an async cursor is to return false from the Block.  &lt;/p&gt;

&lt;p&gt;A better way might be to instead call cancel() on the Future returned from the forEach method() in the higher level API.  This models more closely the way a Subscription works in RxJava.&lt;/p&gt;</description>
                <environment></environment>
        <key id="139323">JAVA-1259</key>
            <summary>Ensure Async cursors can be cancelled</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="ross@mongodb.com">Ross Lawley</reporter>
                        <labels>
                    </labels>
                <created>Fri, 30 May 2014 15:43:18 +0000</created>
                <updated>Tue, 31 Mar 2015 20:09:52 +0000</updated>
                            <resolved>Thu, 15 Jan 2015 10:37:03 +0000</resolved>
                                                    <fixVersion>3.0.0</fixVersion>
                                    <component>Async</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="869451" author="jeff.yemin" created="Tue, 31 Mar 2015 20:09:52 +0000"  >&lt;p&gt;Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.&lt;/p&gt;</comment>
                            <comment id="818073" author="xgen-internal-githook" created="Fri, 30 Jan 2015 18:46:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Added batchCursor method to the async MongoIterable&lt;/p&gt;

&lt;p&gt;Allows users fine grained control over the cursor.  They can&lt;br/&gt;
implement their own backpressure logic and cancel the cursor&lt;br/&gt;
as they need.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1259&quot; title=&quot;Ensure Async cursors can be cancelled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1259&quot;&gt;&lt;del&gt;JAVA-1259&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1268&quot; title=&quot;Implement back pressure for asynchronous cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1268&quot;&gt;&lt;del&gt;JAVA-1268&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/52dd64229932ce83acdb9a63f47ce198e89fec94&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/52dd64229932ce83acdb9a63f47ce198e89fec94&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="805136" author="xgen-internal-githook" created="Thu, 15 Jan 2015 09:46:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Added batchCursor method to the async MongoIterable&lt;/p&gt;

&lt;p&gt;Allows users fine grained control over the cursor.  They can&lt;br/&gt;
implement their own backpressure logic and cancel the cursor&lt;br/&gt;
as they need.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1259&quot; title=&quot;Ensure Async cursors can be cancelled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1259&quot;&gt;&lt;del&gt;JAVA-1259&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1268&quot; title=&quot;Implement back pressure for asynchronous cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1268&quot;&gt;&lt;del&gt;JAVA-1268&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/52dd64229932ce83acdb9a63f47ce198e89fec94&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/52dd64229932ce83acdb9a63f47ce198e89fec94&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="620235" author="ross@10gen.com" created="Fri, 13 Jun 2014 15:06:43 +0000"  >&lt;p&gt;Lots of contention here about the best way to solve &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/208&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/208&lt;/a&gt; provided a cleaner solution however after reviewing &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1268&quot; title=&quot;Implement back pressure for asynchronous cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1268&quot;&gt;&lt;del&gt;JAVA-1268&lt;/del&gt;&lt;/a&gt; I&apos;m parking this as we may solve both at the same time.&lt;/p&gt;</comment>
                            <comment id="618418" author="ross@10gen.com" created="Thu, 12 Jun 2014 11:51:50 +0000"  >&lt;p&gt;Ready for review: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/207&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/207&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="141305">JAVA-1268</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>JAVA-774</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrg9xr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8508</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="202">Sprint 4 - June 16 - July 3</customfieldvalue>
    <customfieldvalue id="239">Sprint  5 - July 7 - July 25</customfieldvalue>
    <customfieldvalue id="371">Java Sprint 14</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>