it: test explicit sync
This commit is contained in:
parent
6448a14fb1
commit
3b0757ee53
22 changed files with 419 additions and 166 deletions
|
|
@ -25,6 +25,14 @@ pub struct TestJayCompositor {
|
|||
}
|
||||
|
||||
impl TestJayCompositor {
|
||||
pub fn new(tran: &Rc<TestTransport>) -> Self {
|
||||
Self {
|
||||
id: tran.id(),
|
||||
tran: tran.clone(),
|
||||
client_id: Cell::new(None),
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn get_client_id(&self) -> Result<ClientId, TestError> {
|
||||
if self.client_id.is_none() {
|
||||
self.tran.send(GetClientId { self_id: self.id })?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue