Edmond Dantès
Edmond Dantès
With django now supporting async, should we be trying to import [asgiref.local.Local](https://github.com/django/asgiref/blob/main/asgiref/local.py) if available, which is a drop-in async replacement for threading.local? Perhaps replacing: from threading import local With: try:...
```Go package main import ( "context" gerrit "github.com/andygrunwald/go-gerrit" "log" ) func main() { ctx := context.Background() instance := "http://127.0.0.1:8080/" client, _ := gerrit.NewClient(ctx, instance, nil) client.Authentication.SetBasicAuth("admin", "xxx") cap, _, err...
https://github.com/duke-git/lancet/blob/main/maputil/map.go#L457 请教下: maputil.SortByKey 函数返回的map 在遍历时是无序的。不明白这个函数的作用是什么? 如果需要一个排序的列表,为啥不返回一个包含key value 的结构体切片呢? ```go type KV[K any, V any] struct { Key K Value V } func SortByKey[K constraints.Ordered, V any](m map[K]V, less func(a, b...