Skip to content

Instantly share code, notes, and snippets.

View Albinzr's full-sized avatar
⛩️
Focusing

Albin Albinzr

⛩️
Focusing
View GitHub Profile
@Albinzr
Albinzr / Swift3DataTaskDelegate.swift
Created October 15, 2019 18:43 — forked from stinger/Swift3DataTaskDelegate.swift
Swift 3: URLSessionDelegate
//: # Swift 3: URLSessionDelegate
//: The following example shows how to use `OperationQueue` to queue the network requests. This is useful in many ways (for delaying queued requests when the networking goes down for example)
import Foundation
import PlaygroundSupport
class Requester:NSObject {
let opQueue = OperationQueue()
var response:URLResponse?
package main
import (
"fmt"
lz "github.com/Albinzr/lzGo"
"github.com/pkg/errors"
"log"
"net/http"
_ "net/http/pprof"
)