[][src]Function dqcsim::bindings::dqcs_sim_yield

#[no_mangle]pub extern "C" fn dqcs_sim_yield(sim: dqcs_handle_t) -> dqcs_return_t

Yields to the simulator.

The simulation runs until it blocks again. This is useful if you want an immediate response to an otherwise asynchronous call through the logging system or some communication channel outside of DQCsim's control.

This function silently returns immediately if no asynchronous data was pending or if the simulator is waiting for something that has not been sent yet.