`AsyncMutableFeatureFlagStoreProtocol`

This commit is contained in:
Yakov Manshin 2022-09-29 21:46:27 +00:00
parent df6a034bc5
commit 9b2454e783
No known key found for this signature in database
GPG Key ID: DA3328AA3609559B
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
//
// AsyncMutableFeatureFlagStoreProtocol.swift
// YMFFProtocols
//
// Created by Yakov Manshin on 9/29/22.
// Copyright © 2022 Yakov Manshin. See the LICENSE file for license info.
//
public protocol AsyncMutableFeatureFlagStoreProtocol: AnyObject, AsyncFeatureFlagStoreProtocol {
func setValue<Value>(_ value: Value, forKey key: String) async throws
func removeValue(forKey key: String) async throws
func saveChanges() async throws
}
// MARK: - Default Implementation
extension AsyncMutableFeatureFlagStoreProtocol {
public func saveChanges() async throws { }
}