Changeset - 5398a96cc63a
[Not reviewed]
0 1 0
MH - 4 years ago 2021-11-12 13:46:39
contact@maxhenger.nl
Small edit to comments
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/runtime2/native.rs
Show inline comments
 
@@ -409,7 +409,6 @@ impl ApplicationInterface {
 
    /// Creates a new connector. Note that it is not scheduled immediately, but
 
    /// depends on the `ApplicationConnector` to run, followed by the created
 
    /// connector being scheduled.
 
    // TODO: Yank out scheduler logic for common use.
 
    pub fn create_connector(&mut self, module: &str, routine: &str, arguments: ValueGroup) -> Result<(), ComponentCreationError> {
 
        if self.is_in_sync {
 
            return Err(ComponentCreationError::InSync);
 
@@ -450,6 +449,7 @@ impl ApplicationInterface {
 
    /// run the synchronous behaviour in blocking fashion. The results *must* be
 
    /// retrieved using `try_wait` or `wait` for the interface to be considered
 
    /// in non-sync mode.
 
    // TODO: Maybe change API in the future. For now it does the job
 
    pub fn perform_sync_round(&mut self, actions: Vec<ApplicationSyncAction>) -> Result<(), ApplicationStartSyncError> {
 
        if self.is_in_sync {
 
            return Err(ApplicationStartSyncError::AlreadyInSync);
 
@@ -492,7 +492,8 @@ impl ApplicationInterface {
 
        return Ok(())
 
    }
 

	
 
    /// Wait until the next sync-round is finished
 
    /// Wait until the next sync-round is finished, returning the received
 
    /// messages in order of `get` calls.
 
    pub fn wait(&mut self) -> Result<Vec<ValueGroup>, ApplicationEndSyncError> {
 
        if !self.is_in_sync {
 
            return Err(ApplicationEndSyncError::NotInSync);
0 comments (0 inline, 0 general)