FAQ

On Tue, Sep 1, 2015 at 6:34 AM, David Crawshaw wrote:
The general direction sounds good, but I would like to understand why
Publish needs to respond with an event, instead of just blocking until
the buffer is swapped and returning a bool.
Huh, I guess that would work too. If we're going to do that, we might
as well call it SwapBuffers:

type Window interface {
   etc
   SwapBuffers() SwapBuffersResult
}

type SwapBuffersResult bool

const (
   BackBufferUndefined SwapBuffersResult = false
   BackBufferPreserved SwapBuffersResult = true
)

--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 7 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedAug 31, '15 at 12:24p
activeSep 2, '15 at 12:42a
posts7
users4
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase