This file contains 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
[{ | |
"color": "#FFD1262C", | |
"line": "Сокольническая линия", | |
"stations": ["Бульвар Рокоссовского", "Черкизовская", "Преображенская площадь", "Сокольники", "Красносельская", "Комсомольская", "Красные ворота", "Чистые пруды", "Лубянка", "Охотный ряд", "Библиотека имени Ленина", "Кропоткинская", "Парк культуры", "Фрунзенская", "Спортивная", "Воробьёвы горы", "Университет", "Проспект Вернадского", "Юго-Западная", "Тропарёво"] | |
}, { | |
"color": "#FF2E9C48", | |
"line": "Замоскворецкая линия", | |
"stations": ["Алма-Атинская", "Красногвардейская", "Домодедовская", "Орехово", "Царицыно", "Кантемировская", "Каширская", "Коломенская", "Автозаводская", "Павелецкая", "Новокузнецкая", "Театральная", "Тверская", "Маяковская", "Белорусская", "Динамо", "Аэропорт", "Сокол", "Войковская", "Водный стадион", "Речной вокзал"] | |
}, { | |
"color": "#FF017FC7", |
This file contains 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
References | |
1. SwiftyTroupe (self-created, Swift) | |
https://github.com/Noluk1991/SwiftyTroupe | |
2. Concurrency is not parallelism | |
https://blog.golang.org/concurrency-is-not-parallelism | |
3. Concurrency in Swift: one approach (Actors) | |
https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9f782#part-2-actors-eliminating-shared-mutable-state |
This file contains 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
// Разное интересное по многопоточности: | |
// Featured-секция, для любителей архивной документации от Apple: | |
1. https://developer.apple.com/library/archive/technotes/tn/tn2028.html#//apple_ref/doc/uid/DTS10003065 - про внутренности потоков в MAC OS X в сравнении с MAC OS 9 | |
2. https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/About/About.html - Kernel Programming guide, вы же понимаете, что там будет, да :D | |
// Для любителей WWDC: | |
1. https://developer.apple.com/videos/play/wwdc2015/718/ - GCD раз. |
This file contains 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
*Swift* | |
// Старая документация от Apple — это золото. Но и актуальной не брезгуй. | |
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/MemoryMgmt.html#//apple_ref/doc/uid/10000011i | |
https://developer.apple.com/library/archive/releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011226 | |
// Это вообще Threading Programming Guide, но тут есть о Runloop :) | |
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/Introduction/Introduction.html#//apple_ref/doc/uid/10000057i-CH1-SW1 | |
// Блог Mike Ash-a набирает в полезности со временем | |
https://www.mikeash.com/pyblog/friday-qa-2017-09-22-swift-4-weak-references.html |
This file contains 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
import Foundation | |
// Номера совпадают с красными номерами на слайдах в правом верхнем углу :) | |
// Номера sample-ов сделал по порядку, чтобы удобней было запускать по очереди. | |
// для запуска с Swift 6.0+: | |
extension Thread { | |
static var currentThread: Thread { | |
.current |