Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions hydro_lang/src/compile/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ impl<'a> FlowBuilder<'a> {
}
}

/// Create a cluster with a specific consistency guarantee.
pub fn cluster_with_consistency<C, Con: crate::location::cluster::Consistency>(
&mut self,
) -> Cluster<'a, C, Con> {
use crate::location::Location;
Cluster::from_drop_consistency(self.cluster::<C>())
}

pub fn external<E>(&mut self) -> External<'a, E> {
let key = self.locations.insert(LocationType::External);
self.location_names.insert(key, type_name::<E>().to_owned());
Expand Down
Loading