Skip to content

Commit

Permalink
client: allow public access to WorkflowHandle (temporalio#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored Apr 23, 2024
1 parent a04b31f commit 188470b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ pub use temporal_sdk_core_protos::temporal::api::{
};
pub use tonic;
pub use worker_registry::{Slot, SlotManager, SlotProvider, WorkerKey};
pub use workflow_handle::{WorkflowExecutionInfo, WorkflowExecutionResult};
pub use workflow_handle::{
GetWorkflowResultOpts, WorkflowExecutionInfo, WorkflowExecutionResult, WorkflowHandle,
};

use crate::{
metrics::{GrpcMetricSvc, MetricsContext},
Expand Down
2 changes: 2 additions & 0 deletions client/src/workflow_handle/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ where
}
}

/// Get the workflow execution info
pub fn info(&self) -> &WorkflowExecutionInfo {
&self.info
}

/// Await the result of the workflow execution
pub async fn get_workflow_result(
&self,
opts: GetWorkflowResultOpts,
Expand Down

0 comments on commit 188470b

Please sign in to comment.