Skip to content

DeterministicScheduler: Future is done if cancelled#237

Merged
olibye merged 3 commits into
jmock-developers:masterfrom
leonz:patch-1
Mar 16, 2024
Merged

DeterministicScheduler: Future is done if cancelled#237
olibye merged 3 commits into
jmock-developers:masterfrom
leonz:patch-1

Conversation

@leonz

@leonz leonz commented Jul 11, 2023

Copy link
Copy Markdown
Contributor

The Javadoc for Future implies that isDone() is always true if isCancelled() is true.

Returns true if this task completed. Completion may be due to normal termination, an exception, or cancellation -- in all of these cases, this method will return true.

https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Future.html#isDone--

leonz and others added 3 commits July 11, 2023 14:35
The Javadoc for Future implies that `isDone()` is always true if `isCancelled()` is true.

```
Returns true if this task completed. Completion may be due to normal termination, an exception, or cancellation -- in all of these cases, this method will return true.
```
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Future.html#isDone--
@olibye olibye added this pull request to the merge queue Mar 16, 2024
Merged via the queue into jmock-developers:master with commit c44dfc0 Mar 16, 2024
@olibye olibye added this to the 2.13.1 milestone Mar 16, 2024
github-merge-queue Bot referenced this pull request in camunda/camunda Mar 18, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[org.jmock:jmock](http://nexus.sonatype.org/oss-repository-hosting.html)
([source](https://togithub.com/jmock-developers/jmock-library)) |
`2.13.0` -> `2.13.1` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/org.jmock:jmock/2.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.jmock:jmock/2.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.jmock:jmock/2.13.0/2.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.jmock:jmock/2.13.0/2.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>jmock-developers/jmock-library (org.jmock:jmock)</summary>

###
[`v2.13.1`](https://togithub.com/jmock-developers/jmock-library/releases/tag/2.13.1)

[Compare
Source](https://togithub.com/jmock-developers/jmock-library/compare/2.13.0...2.13.1)

Catchup on versions and PRs

#### What's Changed

- Update README.md by [@&#8203;olibye](https://togithub.com/olibye) in
[https://github.com/jmock-developers/jmock-library/pull/246](https://togithub.com/jmock-developers/jmock-library/pull/246)
- Updated README instructions for using JMock in Gradle 7.0+. by
[@&#8203;jbrains](https://togithub.com/jbrains) in
[https://github.com/jmock-developers/jmock-library/pull/233](https://togithub.com/jmock-developers/jmock-library/pull/233)
- Reduce logging by [@&#8203;olibye](https://togithub.com/olibye) in
[https://github.com/jmock-developers/jmock-library/pull/247](https://togithub.com/jmock-developers/jmock-library/pull/247)
- Fix
[#&#8203;155](https://togithub.com/jmock-developers/jmock-library/issues/155)
by [@&#8203;olibye](https://togithub.com/olibye) in
[https://github.com/jmock-developers/jmock-library/pull/250](https://togithub.com/jmock-developers/jmock-library/pull/250)
- Upgrade junit4 by [@&#8203;olibye](https://togithub.com/olibye) in
[https://github.com/jmock-developers/jmock-library/pull/251](https://togithub.com/jmock-developers/jmock-library/pull/251)
- Bump junit.jupiter.version from 5.5.2 to 5.6.2 by
[@&#8203;dependabot-preview](https://togithub.com/dependabot-preview) in
[https://github.com/jmock-developers/jmock-library/pull/183](https://togithub.com/jmock-developers/jmock-library/pull/183)
- Upgrade to GitHub-native Dependabot by
[@&#8203;dependabot-preview](https://togithub.com/dependabot-preview) in
[https://github.com/jmock-developers/jmock-library/pull/218](https://togithub.com/jmock-developers/jmock-library/pull/218)
- Prepare for merge queue by
[@&#8203;olibye](https://togithub.com/olibye) in
[https://github.com/jmock-developers/jmock-library/pull/262](https://togithub.com/jmock-developers/jmock-library/pull/262)
- DeterministicScheduler: Future is done if cancelled by
[@&#8203;leonz](https://togithub.com/leonz) in
[https://github.com/jmock-developers/jmock-library/pull/237](https://togithub.com/jmock-developers/jmock-library/pull/237)
- Bump org.apache.maven.plugins:maven-jar-plugin from 2.5 to 3.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/256](https://togithub.com/jmock-developers/jmock-library/pull/256)
- Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.0.0-M2 to
3.4.1 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/257](https://togithub.com/jmock-developers/jmock-library/pull/257)
- Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.2.0 to 3.6.3
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/258](https://togithub.com/jmock-developers/jmock-library/pull/258)
- Bump org.apache.maven.plugins:maven-failsafe-plugin from 2.22.2 to
3.2.5 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/261](https://togithub.com/jmock-developers/jmock-library/pull/261)
- Dependabot ignore old junit runners by
[@&#8203;olibye](https://togithub.com/olibye) in
[https://github.com/jmock-developers/jmock-library/pull/263](https://togithub.com/jmock-developers/jmock-library/pull/263)
- Bump net.bytebuddy:byte-buddy from 1.10.9 to 1.14.12 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/252](https://togithub.com/jmock-developers/jmock-library/pull/252)
- Bump org.objenesis:objenesis from 3.1 to 3.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/255](https://togithub.com/jmock-developers/jmock-library/pull/255)
- Bump org.codehaus.mojo:versions-maven-plugin from 2.7 to 2.16.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/253](https://togithub.com/jmock-developers/jmock-library/pull/253)
- Bump org.codehaus.mojo:exec-maven-plugin from 1.6.0 to 3.2.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/259](https://togithub.com/jmock-developers/jmock-library/pull/259)
- Bump org.sonatype.plugins:nexus-staging-maven-plugin from 1.6.8 to
1.6.13 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/260](https://togithub.com/jmock-developers/jmock-library/pull/260)
- Bump junit.jupiter.version from 5.6.2 to 5.10.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/264](https://togithub.com/jmock-developers/jmock-library/pull/264)
- Bump com.thoughtworks.qdox:qdox from 2.0-M10 to 2.1.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/265](https://togithub.com/jmock-developers/jmock-library/pull/265)
- Bump org.apache.maven.plugins:maven-surefire-plugin from 2.22.2 to
3.2.5 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/267](https://togithub.com/jmock-developers/jmock-library/pull/267)
- Bump com.google.auto.service:auto-service from 1.0-rc6 to 1.1.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/268](https://togithub.com/jmock-developers/jmock-library/pull/268)
- Bump net.alchim31.maven:scala-maven-plugin from 4.3.1 to 4.8.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/269](https://togithub.com/jmock-developers/jmock-library/pull/269)
- Bump org.apache.maven.plugins:maven-gpg-plugin from 1.6 to 3.2.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/jmock-developers/jmock-library/pull/266](https://togithub.com/jmock-developers/jmock-library/pull/266)
- Support negative delays in ScheduledFutures executed by the Determini…
by [@&#8203;satur9nine](https://togithub.com/satur9nine) in
[https://github.com/jmock-developers/jmock-library/pull/236](https://togithub.com/jmock-developers/jmock-library/pull/236)

#### New Contributors

- [@&#8203;leonz](https://togithub.com/leonz) made their first
contribution in
[https://github.com/jmock-developers/jmock-library/pull/237](https://togithub.com/jmock-developers/jmock-library/pull/237)
- [@&#8203;dependabot](https://togithub.com/dependabot) made their first
contribution in
[https://github.com/jmock-developers/jmock-library/pull/256](https://togithub.com/jmock-developers/jmock-library/pull/256)
- [@&#8203;satur9nine](https://togithub.com/satur9nine) made their first
contribution in
[https://github.com/jmock-developers/jmock-library/pull/236](https://togithub.com/jmock-developers/jmock-library/pull/236)

**Full Changelog**:
jmock-developers/jmock-library@2.13.0...2.13.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 10pm every weekday,before 6am
every weekday" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/camunda/zeebe).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNDUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants