[ 
https://issues.apache.org/jira/browse/TINKERPOP-1195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stephen mallette updated TINKERPOP-1195:
----------------------------------------
    Description: 
Given discussion on a couple different threads:

https://lists.apache.org/thread.html/Z424dvlo67k5np4
https://lists.apache.org/thread.html/Z70ku3nckrkkgiy

the idea to introduce a breaking change to the {{Client}} and {{Result}} API 
seems to be established.  The basic changes involve:

1. Remove the return of {{CompletableFuture}} from a {{ResultSet}} thus 
allowing it to block for the {{some()}} and {{all()}} methods.
2. Change {{Client.submit()}} to return {{List<Result>}} rather than return a 
{{ResultSet}} - that method will basically block until all results are returned 
and then unwrap the {{List<Result>}} and return that.

Unfortunately, there doesn't appear to be a way to make it so that these 
changes are non-breaking.

  was:
Given discussion on a couple different threads:

https://pony-poc.apache.org/thread.html/Z424dvlo67k5np4
https://pony-poc.apache.org/thread.html/Z70ku3nckrkkgiy

the idea to introduce a breaking change to the {{Client}} and {{Result}} API 
seems to be established.  The basic changes involve:

1. Remove the return of {{CompletableFuture}} from a {{ResultSet}} thus 
allowing it to block for the {{some()}} and {{all()}} methods.
2. Change {{Client.submit()}} to return {{List<Result>}} rather than return a 
{{ResultSet}} - that method will basically block until all results are returned 
and then unwrap the {{List<Result>}} and return that.

Unfortunately, there doesn't appear to be a way to make it so that these 
changes are non-breaking.


> Client and ResultSet API changes
> --------------------------------
>
>                 Key: TINKERPOP-1195
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1195
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: driver
>    Affects Versions: 3.1.1-incubating
>            Reporter: stephen mallette
>            Assignee: stephen mallette
>              Labels: breaking
>
> Given discussion on a couple different threads:
> https://lists.apache.org/thread.html/Z424dvlo67k5np4
> https://lists.apache.org/thread.html/Z70ku3nckrkkgiy
> the idea to introduce a breaking change to the {{Client}} and {{Result}} API 
> seems to be established.  The basic changes involve:
> 1. Remove the return of {{CompletableFuture}} from a {{ResultSet}} thus 
> allowing it to block for the {{some()}} and {{all()}} methods.
> 2. Change {{Client.submit()}} to return {{List<Result>}} rather than return a 
> {{ResultSet}} - that method will basically block until all results are 
> returned and then unwrap the {{List<Result>}} and return that.
> Unfortunately, there doesn't appear to be a way to make it so that these 
> changes are non-breaking.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to