---
title: finishDeferredLightweightMigrationTask()
framework: coredata
role: symbol
role_heading: Instance Method
path: coredata/nspersistentstorecoordinator/finishdeferredlightweightmigrationtask()
---

# finishDeferredLightweightMigrationTask()

Executes a single pending task of a deferred lightweight migration.

## Declaration

```swift
func finishDeferredLightweightMigrationTask() throws
```

## Discussion

Discussion note: Enable deferred lightweight migrations before using this method. For more information, see NSPersistentStoreDeferredLightweightMigrationOptionKey.

## See Also

### Deferring a store’s migrations

- [NSPersistentStoreDeferredLightweightMigrationOptionKey](coredata/nspersistentstoredeferredlightweightmigrationoptionkey.md)
- [finishDeferredLightweightMigration()](coredata/nspersistentstorecoordinator/finishdeferredlightweightmigration().md)
