This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| "time" | |
| ) | |
| func worker(wg *sync.WaitGroup, id int) { | |
| defer wg.Done() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // CheckboxToggleStyle.swift | |
| // | |
| // Created by Felix Mau on 25.05.2021. | |
| // Copyright © 2021 Felix Mau. All rights reserved. | |
| // | |
| import SwiftUI | |
| // MARK: - Config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Observe all notifications generated by the default NotificationCenter | |
| NotificationCenter.default.addObserver( | |
| forName: nil, object: nil, queue: nil) { notification in | |
| Swift.print("Notification: \(notification.name.rawValue), Object: \(notification.object)") | |
| } | |
| // Observe all notifications generated by the default DistributedNotificationCenter | |
| DistributedNotificationCenter.default().addObserver( | |
| forName: nil, object: nil, queue: nil) { notification in | |
| Swift.print("Notification: \(notification.name.rawValue), Object: \(notification.object)") |
OlderNewer