let container = NSPersistentContainer.persistentContainerWithName("myApp")
container.performBackgroundTask() { context in
// use context to do asynchronous work
}
let bgContext = container.newBackgroundContext
bgContext.perform {
// do staff
}
дак и нужна ли она там? :) может отказать от оффлайн версии как таковой?