swiftdata insert(_) runs synchronously?

Is guaranteed that if I run

let item = Item()
container.mainContext.insert(item)
let items = container.mainContext.fetch(FetchDescriptor<Item>())

item is in items ?

I seem to remember that it was not like that in CoreData

in MainActor

swiftdata insert(_) runs synchronously?
 
 
Q