'All future works submitted to stream will wait util the event completes.'

def wait(self, stream=0):

    hstream = (stream.handle if stream else 0)
    flags = 0
    driver.cuStreamWaitEvent(hstream, self.handle, flags)
