block_on() function to execute a future on a thread.
Changed
Renamed poll!() to race!()
Separated non-array functionality of poll!() into new macro: `wait!().
join!() no longer requires the futures to be pinned, as it can pin them
itself.
exec!() macro can no longer start multiple threads, but you can use it on
multiple threads simultaneously. exec!() no longer takes a future, but
an asynchronous expression that gets run in an infinite loop.
task!() macro to create a Task from an async block or function.
exec!() macro to execute futures from synchronous code, supporting
parallelization when the std feature is enabled, and not on WASM.
poll!() macro to create a future that returns ready when the first of a
list of futures returns ready.
join!() macro to concurrently push multiple futures to completion.
Removed
DynFuture and DynFut as they were unsound; you may now use the task!()
macro for the same effect.
spawn() as it was also unsound due to the fact it made executors that did
not have a 'static lifetime nor did reference counting; you may now use the
exec!() macro instead.
JoinHandle - though there are no replacements for this API, you can use
exec!() to create a thread pool with num_cpus to execute tasks.
Join trait - use join!() macro, which can take any number of arguments
rather than being limited to six.
Select trait - use poll!() macro, which automatically changes your
futures into Tasks. It was renamed to poll!() because it works
differently than select!() seen elsewhere in the async ecosystem.
SelectBoxed - no longer needed, poll!() works on Boxes
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Updates the requirements on pasts to permit the latest version.
Changelog
Sourced from pasts's changelog.
Commits
129287f
Fix README links.e769982
v0.7.14447f09
Merge branch 'working'db26c4b
Format code.5c22307
Release candidate for 0.7.02a95b1c
Fix tests.f6cfb22
Change a couple thingsa4b3948
Add missing attribute.11d3324
Remove Task and task!() in favor of wait!() and newer join!().Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)