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
use std::time::{Duration, Instant}; | |
use actix::prelude::*; | |
use rand::Rng; | |
use tokio::time::sleep; | |
#[actix_rt::main] | |
async fn main() { | |
let actor = MyActor::start_default(); |
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
// | |
// FirestoreEncoderTests.swift | |
// GoogleAPITests | |
// | |
// Created by Guido Marucci Blas on 10/1/18. | |
// | |
import Foundation | |
import XCTest | |
import GoogleAPI |
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
// AnyCodingKey.swift | |
import Foundation | |
struct AnyCodingKey: CodingKey, Equatable { | |
var stringValue: String | |
var intValue: Int? | |
init?(stringValue: String) { |
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
// | |
// Firestore.swift | |
// Feebi | |
// | |
// Created by Guido Marucci Blas on 5/20/18. | |
// | |
import Foundation | |
public protocol JSONRepresentable: Encodable { |
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
public protocol JSONRepresentable: Encodable { | |
func asJsonData() throws -> Data | |
func asJson() throws -> [String : Any]? | |
} | |
extension JSONRepresentable { |
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 | |
struct AnyError: Error { | |
private let error: Error | |
init(_ error: Error) { | |
self.error = error | |
} |
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 version: Swift version 4.1 (swift-4.1-RELEASE) | |
Target: x86_64-unknown-linux-gnu | |
swift: /home/buildnode/jenkins/workspace/oss-swift-4.1-package-linux-ubuntu-14_04/swift/include/swift/AST/Decl.h:840: void swift::Decl::setIsBeingValidated(bool): Assertion `DeclBits.BeingValidated != ibv' failed. | |
/usr/bin/swift[0x3b78654] | |
/usr/bin/swift[0x3b78dc6] | |
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10330)[0x7f84ee7f9330] | |
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7f84ecfdbc37] | |
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7f84ecfdf028] | |
/lib/x86_64-linux-gnu/libc.so.6(+0x2fbf6)[0x7f84ecfd4bf6] |
NewerOlder