Example #1
0
def reader_thread(data):
    with concurrently.open_for_read(data['filename']) as f:
        data['event'].wait()
        data['read'] = f.read()
Example #2
0
def reader_thread(data):
    with concurrently.open_for_read(data['filename']) as f:
        data['event'].wait()
        data['read'] = f.read()
Example #3
0
 def test_simple_read(self):
     with concurrently.open_for_read(self.tmpfile) as f:
         self.assertEqual(self.contents, f.read())
Example #4
0
 def test_simple_read(self):
     with concurrently.open_for_read(self.tmpfile) as f:
         self.assertEqual(self.contents, f.read())