Allow use of Combine to enable Xcode autocomplete (#299)

It looks weird, but it works 🤷‍♂️
This commit is contained in:
Max Desiatov 2020-11-09 12:20:22 +00:00 committed by GitHub
parent 082fa19398
commit 7320de9857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -13,7 +13,11 @@
// limitations under the License.
import JavaScriptKit
#if canImport(Combine)
import Combine
#else
import OpenCombine
#endif
final class JSScheduler: Scheduler {
private final class CancellableTimer: Cancellable {