SwiftUIX / Coordinator

A declarative navigation API for SwiftUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

os_unfair_lock_lock is being called from AppDelegate

fampaySiddharth opened this issue · comments

If I use debug google service plist for Firebase and initialize with it.
Then Merge throws a os_unfair_lock_lock error, sometimes reactor.dispatch also throws this

Screenshot 2023-05-31 at 5 59 07 PM

The 'retainSink' is causing the issue.

public func uploadFCMToken() {
    _ = myRepository().uploadFCMToken().retainSink() <- This retain sink
  }

This is related to the Merge framework (and also should be fixed with the recent refactor of PassthroughTask).