Skip to content

Commit 50a93a2

Browse files
authored
release 0.6.14 (#362)
2 parents 5c5daf9 + 67b34b5 commit 50a93a2

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ members = [
88
]
99

1010
[workspace.package]
11-
version = "0.6.10"
11+
version = "0.6.14"
1212
edition = "2021"
1313
authors = ["[email protected]"]
1414
repository = "https://github.com/acl-dev/open-coroutine"
1515
license = "Apache-2.0"
1616
readme = "README.md"
1717

1818
[workspace.dependencies]
19-
open-coroutine-core = { path = "core", version = "0.6.0" }
20-
open-coroutine-hook = { path = "hook", version = "0.6.0" }
21-
open-coroutine-macros = { path = "macros", version = "0.6.0" }
19+
open-coroutine-core = { path = "core", version = "0.6.14" }
20+
open-coroutine-hook = { path = "hook", version = "0.6.14" }
21+
open-coroutine-macros = { path = "macros", version = "0.6.14" }
2222

2323
tracing = { version = "0.1", default-features = false }
2424
tracing-subscriber = { version = "0.3", default-features = false }

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,6 @@ fn main() {
108108

109109
## ⚓ Learn More
110110

111+
- [Coroutine Design](core/docs/en/coroutine.md)
112+
111113
[我有故事,你有酒吗?](https://github.com/acl-dev/open-coroutine-docs)
File renamed without changes.

core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub mod common;
6060
#[allow(missing_docs)]
6161
pub mod config;
6262

63-
#[doc = include_str!("../../docs/en/coroutine.md")]
63+
#[doc = include_str!("../docs/en/coroutine.md")]
6464
pub mod coroutine;
6565

6666
/// Make the coroutine automatically yield.

open-coroutine/src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
5050
use open_coroutine_core::co_pool::task::UserTaskFunc;
5151
use open_coroutine_core::common::constants::SLICE;
52+
pub use open_coroutine_core::common::ordered_work_steal::DEFAULT_PRECEDENCE;
5253
pub use open_coroutine_core::config::Config;
5354
use open_coroutine_core::net::UserFunc;
5455
pub use open_coroutine_macros::*;
@@ -109,19 +110,15 @@ pub fn shutdown() {
109110
#[macro_export]
110111
macro_rules! task {
111112
( $f: expr , $param:expr , $priority: expr $(,)? ) => {
112-
$crate::task($f, $param, $priority)
113+
$crate::crate_task($f, $param, $priority)
113114
};
114115
( $f: expr , $param:expr $(,)? ) => {
115-
$crate::task(
116-
$f,
117-
$param,
118-
open_coroutine_core::common::ordered_work_steal::DEFAULT_PRECEDENCE,
119-
)
116+
$crate::crate_task($f, $param, $crate::DEFAULT_PRECEDENCE)
120117
};
121118
}
122119

123120
/// Create a task.
124-
pub fn task<P: 'static, R: 'static, F: FnOnce(P) -> R>(
121+
pub fn crate_task<P: 'static, R: 'static, F: FnOnce(P) -> R>(
125122
f: F,
126123
param: P,
127124
priority: c_longlong,

0 commit comments

Comments
 (0)