-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(code): Embed
Resumable
type inside each Effect
for creating…
… resumption value (#683) * chore(code): Embed `Resumable` type inside each `Effect` to provide better type-safety for resuming after performing an effect * Remove the height from the `GetValidatorSet` resumption * Add a few more doc comments, cleanup
- Loading branch information
Showing
16 changed files
with
271 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
use genawaiter::sync as gen; | ||
use genawaiter::GeneratorState; | ||
|
||
use crate::{Effect, Error, Resume}; | ||
use crate::effect::{Effect, Resume}; | ||
use crate::error::Error; | ||
|
||
pub use gen::Gen; | ||
|
||
#[allow(private_interfaces)] | ||
pub type Co<Ctx> = gen::Co<Effect<Ctx>, Resume<Ctx>>; | ||
|
||
pub type CoResult<Ctx> = GeneratorState<Effect<Ctx>, Result<(), Error<Ctx>>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.