{"modulePath":"github.com/foxcpp/maddy","version":"v0.9.8","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package future\n\n## Types\n\n```go\ntype Future struct {\n\t// contains filtered or unexported fields\n}\n```\nThe Future object implements a container for (value, error) pair that \"will be populated later\" and allows multiple users to wait for it to be set.\n\nIt should not be copied after first use.\n\n```go\nfunc New() *Future\n```\n\n```go\nfunc (f *Future) Get() (interface{}, error)\n```\n\n```go\nfunc (f *Future) GetContext(ctx context.Context) (interface{}, error)\n```\n\n```go\nfunc (f *Future) Set(val interface{}, err error)\n```\nSet sets the Future (value, error) pair. All currently blocked and future Get calls will return it.\n\n","path":"github.com/foxcpp/maddy/framework/future","name":"future","synopsis":"","isRedistributable":true}
