Skip to content

Commit

Permalink
DOC: update documents
Browse files Browse the repository at this point in the history
  • Loading branch information
not-elm committed May 6, 2024
1 parent 2b06955 commit 190c409
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 38 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
## v0.5.0

Fixed a bug where the execution run condition switch_just_* was not working correctly

-[v0.5.0](https://github.com/not-elm/bevy_flurx/pull/44)

## v0.4.0

added effect actions.
Added effect actions.

- [v0.4.0](https://github.com/not-elm/bevy_flurx/pull/42)

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_flurx"
version = "0.4.0"
version = "0.5.0"
edition = "2021"
authors = ["elm"]
categories = ["asynchronous", "game-development"]
Expand Down
37 changes: 1 addition & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,41 +38,6 @@ fn spawn_reactor(
}));
}
```
## Highlights of the latest version

Added a mechanism to convert asynchronous processing outside of bevy into actions.

```rust

fn spawn_reactor(
mut commands: Commands
) {
commands.spawn(Reactor::schedule(|task| async move {
task.will(Update, effect::bevy_task::spawn(async move {
tokio::time::sleep(std::time::Duration::from_millis(300)).await;
})).await;

task.will(Update, {
once::run(|| {
300
})
.pipe(effect::bevy_task::spawn(|millis: u64| async move {
tokio::time::sleep(std::time::Duration::from_millis(millis)).await;
}))
}).await;

// not support on wasm32
task.will(Update, effect::thread::spawn(|_| {
std::thread::sleep(std::time::Duration::from_millis(300));
})).await;

// not support on wasm32 and require [`tokio`] feature flag
task.will(Update, effect::tokio::spawn(async move {
tokio::time::sleep(std::time::Duration::from_millis(300)).await;
})).await;
}));
}
```

## Example

Expand All @@ -88,7 +53,7 @@ Please see [here](https://github.com/not-elm/bevy_flurx/blob/main/CHANGELOG.md).
|---------------|--------|
| 0.3.0 | 0.13.0 |
| 0.3.1 | 0.13.1 |
| 0.3.2 ~ 0.4.0 | 0.13.2 |
| 0.3.2 ~ 0.5.0 | 0.13.2 |

## License

Expand Down

0 comments on commit 190c409

Please sign in to comment.