Implement init/deinit of inotify system
Use RAII to handle inotify resource lifetime, i.e. initialize with actor creation and deinitialize with actor deletion.
This commit is contained in:
@@ -4,6 +4,6 @@ import Testing
|
||||
@Suite("Initialisation")
|
||||
struct InitTests {
|
||||
@Test func createsCleanly() async throws {
|
||||
let _ = Inotify()
|
||||
let _ = try Inotify()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user